Article 4RM44 Postfix sending mail to wrong server

Postfix sending mail to wrong server

by
upnort
from LinuxQuestions.org on (#4RM44)
At work we use an external spam filtering service. I want to avoid that for our internal/private servers.

Mail is redirected to the spam filtering service through our name server MX records and from the filtering service to our public facing mail server (postfix/dovecot).

Currently emails from our own internal/private servers also go through the spam filtering service.

I trust emails from our internal/private servers and do not want to use the spam filtering service. Another reason is security. Internal server emails should not be going through any kind of external servers.

Some searching reveals possible directives:

smtp_dns_support_level = disabled
lmtp_host_lookup = native
smtp_host_lookup = native

Using those directives my test system wants to send emails to our domain web server rather than our mail server. My guess is I need to configure the test server to know that the default mail server is mail.mydomain.com rather than presume www.mydomain.com.

I tried modifying mydestination = mail.$mydomain, $myhostname, localhost.$mydomain, localhost

mydomain is defined correctly in main.cf.

The mail server IP address is in /etc/hosts.

What am I missing?

Thanks again. :)latest?d=yIl2AUoC8zA latest?i=ngNSCSD2C2s:zKu4qSUVds8:F7zBnMy latest?i=ngNSCSD2C2s:zKu4qSUVds8:V_sGLiP latest?d=qj6IDK7rITs latest?i=ngNSCSD2C2s:zKu4qSUVds8:gIN9vFwngNSCSD2C2s
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments