MTA postfix

Kevin Miller kevin.miller at
Mon May 16 20:12:49 UTC 2016

If MailScanner will just be the gateway, forwarding the inbound mail to internal servers/domains, you might want to look into LDAP.  In my setup, I accept mail for multiple domains, which are listed in /etc/postfix/transport. For example:               smtp:[]              smtp:[]
will forward mail for those domains to their respective internal servers.

In add the following:
  transport_maps = hash:/etc/postfix/transport

There are many ways to get LDAP info.  Use the tool that fits your environment and write the output to a text file.  Massage to suit (i.e., get rid of internal, non-public addresses, etc.) and write the list of valid users to /etc/postfix/relay_recipients then add the following to

  relay_recipient_maps = hash:/etc/postfix/relay_recipients

These are really more MTA (i.e. postfix) questions than MailScanner questions so it may be best to take additional questions to that mailing list.  Don’t mention that you’re running MailScanner over there – they will tell you that you’ll lose mail but there are many folks that are using MailScanner w/postfix w/o any issues.  Let your MTA filter out the invalid recipients, then only use MailScanner on those that are actual users.

Hope this helps.

Kevin Miller
Network/email Administrator, CBJ MIS Dept.
155 South Seward Street
Juneau, Alaska 99801
Phone: (907) 586-0242, Fax: (907) 586-4588 Registered Linux User No: 307357

From: MailScanner [ at] On Behalf Of Emre Keles
Sent: Monday, May 09, 2016 6:09 AM
To: MailScanner Discussion
Subject: Re: MTA postfix

postfix if you can handle the rest works as a proxy.

I want to run postfix transparent.

2016-05-09 16:51 GMT+03:00 John Wilcock <john at<mailto:john at>>:

It's hard to help with so little information.

And (no disrespect intended) the fact that you do not have good command of English does not help. Can you find a Turkish (?) postfix expert to help you? Or a colleague with better command of English who can help you express your questions more clearly?

Or [CALL TO OTHER READERS] is there somebody on this list who understands Turkish and who could advise you directly?

Best regards,
Le 09/05/2016 à 15:34, Emre Keleş a écrit :
I then briefly I would like to ask you the following .
I want to çalışitır postfix as a gateway .
MailScanner installed in machines that are gateways .

2016-05-09 15:48 GMT+03:00 John Wilcock <john at<mailto:john at>>:
Le 09/05/2016 à 14:28, Patrick Goupell a écrit :
If the current 100 domains are in a database, then export that table and import them into the mysql transport database.

Or, if the database is on the mailbox server and you don't want to run mysql on the MailScanner server at all, export the table and convert it into a postfix access table (simply appending ACCEPT to each domain name). And, of course, update this table whenever you add or remove domains.



MailScanner mailing list
mailscanner at<mailto:mailscanner at>





MailScanner mailing list
mailscanner at<mailto:mailscanner at>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the MailScanner mailing list