Hi,
sendmail is set up correctly. Emails arrive at email addresses other than my domain or host name.
Is it possible to ignore – or something like that – the local host/domain?
System: Ubuntu 15.04 with LEMP stack.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi! I know this was posted a while ago but I hope this helps anyone who is experiencing the same issue and happens to come across this question in the future:
This happens by default because your domain name matches either your server’s hostname or a setting in sendmail’s config file. You can force sendmail to send emails to your actual mail server instead of itself by following these steps:
Edit
/etc/mail/sendmail.mc
and add the following lines at the end:Make sure you including the trailing dot!
Run
sendmailconfig
so that the changes take effect, and restartsendmail
just to be 100% sure:Once you’ve done that, try sending an email to the same domain and you should see sendmail connecting to your domain’s incoming mailserver(s) in the log file.
Hi! I know this was posted a while ago but I hope this helps anyone who is experiencing the same issue and happens to come across this question in the future:
This happens by default because your domain name matches either your server’s hostname or a setting in sendmail’s config file. You can force sendmail to send emails to your actual mail server instead of itself by following these steps:
Edit
/etc/mail/sendmail.mc
and add the following lines at the end:Make sure you including the trailing dot!
Run
sendmailconfig
so that the changes take effect, and restartsendmail
just to be 100% sure:Once you’ve done that, try sending an email to the same domain and you should see sendmail connecting to your domain’s incoming mailserver(s) in the log file.