Hello experts,
We installed ESET Mail Security on a Ubuntu server with Postfix to control the amount of spam being delivered.
The Postfix config posted below
Postfix is listening on port 2525
ESET listens on 25 check for spam etc and forwards to postfix on 2525
Outgoing mail is sent by postfix to the smart smtphost of the provider.
This seemed to be working fine until they found out and we realised what we had done.....
ESET is forwarding everthing to postfix with a spam tag if it is declared so.
Postfix receives the mail. As it comes from localhost it is secure so it nicely sends it out to the smtphost.
We created a open Relay. As I am not a postfix expert I thought it wise to ask for advice here.
Thanks for reading.
main.cf
Code:
myhostname = server
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost
relayhost = smtp.provider.something
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
message_size_limit = 25600000
virtual_mailbox_domains = domain_1 domain_2
virtual_mailbox_maps = ldap:/etc/postfix/users.cf
virtual_alias_maps = ldap:/etc/postfix/aliases.cf
virtual_transport = tothemailserver
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
Bookmarks