Sendmail config

I received an error about "mail loops back to me" in sendmail today.

I found several solutions from Google below:

- add your hostname in /etc/mail/local-host-name
- DNS error
- add your hostname in /etc/ (actually I cannot find this file, but the whole idea is, add your hostname to Cw file and everything will be ok).

But none of the above work.

It is also not caused by spamassassin(an anti-spam linux software from apache) as the correct answer is:

Don't config the SMART_SMTP option in

After I add "dnl" before the above directive to disable this, I can send email from my company to Gmail, and from Gmail to my company account.

That's it. Just log it in case I forgot.


Popular posts from this blog

TCPDF How to show/display Chinese Character?

Wordpress Load balancing: 2 web servers 1 MySQL without any Cloud services

Using wget bypass htaccess username password 401 authorization