I have an Ubuntu server running postfix. It is not the mail server for my domain.
Whenever a cron job runs for root, the output mail is not delivered locally, instead it gets sent to root@mydomain.com via the main mail server.
As described in the title. If mydomain.com is THE local domain, why would exim attempt delivering mail by contacting it, rather than just storing it in a local mbox? I.e. when I do echo hello | mail root, it sends an email to root@mydomain.com by contacting an MX listed in mydomain.com.
I'm using vps server with ubuntu 10.04 when i send email to Gmail it's ok but for Hotmail fails, i check my logs i find this:
Mar 19 18:09:01 mail postfix/smtp[6340]: 8FAF722294: to=<root@mydomain.com>, orig_to=<root>, relay=none, delay=0.09, delays=0.08/0.01/0/0, dsn=5.4.6, status=bounced (mail for mydomain.com loops back to myself)
I look around inforums to find the solution but i
According to the manual, if a mail is sent without domain information, it will append $myorigin .
Being new to Linux I have followed this tutorial to set up a mail server:
https://www.digitalocean.com/community/articles/how-to-install-postfix-o...
Everything is working correctly however I am sending mail from: root@mail.example.com
I want mail just being sent from root@example.com, however when I change this section:
myhostname = mail.example.com
mydomain
I've got an Ubuntu server with the hostname node1.mydomain.com. I have mydomain.com set up with Google Apps for email, and mail sent to node1.mydomain.com arrives in the correct Google Apps mailbox. However, mail sent from this server through sendmail (by cron, php, or whatever else) to node1.mydomain.com only gets delivered locally to the user's mailbox, and isn't sent out over SMTP.
I have postfix and mail installed on my server.
The following command works fine
$mail aj@xyz.com
But if I use this command
$mail aj@mydomain.com
The system thinks I am trying to send a local email to the user 'aj'.
when i send mail into my root@mydomain.com address, this works.
but when i send mail into another inexistent user mail address (like sdfsdfdsf@mydomain.com) this reject the e-mail:
Recipient address rejected: User unknown in local recipient table (state 13).
How can i accept all mails (and redirect the 'unknown addresses' into root@mydomain.com)?
Thanks!
I running Linux Mint Debian Edition tracking testing and have started a cron job that will send something to the root mailbox. Mint has heirloom and exim4 installed. However, mail was getting nothing.