LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-01-2019, 06:03 PM   #1
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
Postfix sending mail to wrong server


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.
 
Old 10-02-2019, 11:18 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
http://www.postfix.org/postconf.5.html#transport_maps
 
Old 10-11-2019, 04:44 PM   #3
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
I tried transport maps with no success. I think the problem is the mail server is configured to refuse direct incoming mails and is configured to divert all mails to the spam server.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sending mail via telnet not sending to cc address socalheel Linux - Server 2 10-03-2013 07:57 AM
Sending mail with mail() and postfix when using namecheap's DNS and Email Hosting iLinx Linux - Server 2 07-19-2010 05:53 PM
Mailserver sending but not sending mail from outside. simango Linux - Newbie 1 10-28-2008 08:51 AM
Postfix mail transfer agent not sending mail locally or to other servers sketelsen Linux - Software 3 02-09-2006 11:16 AM
Postfix sending mail for unknown users to other server? Phaethar Linux - Software 2 03-18-2004 01:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration