RE: Forward all mails to other server, how?

"Philipp Kolloczek" <[email protected]>
Newsgroups gmane.mail.qmail.ldap
Message-ID <001201c95d08$c8352f20$589f8d60$@de>
Hello.

From: Jimmy Spam [mailto:[email protected]] 

>From my clients, all connections arrive to MS:192.168.1.2:25 or 587 port
directly. MS >should forward all mails to GW: 192.168.1.1:25. GW filter and
redirect to MS: >192.168.1.2:X and finally, MS delivery the mail to internal
or external user.

>The problem is: How can I forward incoming MS mail to GW?

As mentioned smtp-routes may help you.
But maybe another approach is acceptable for you.

In our installation we do a spam and an optional virus scan ( user based
option )
on every incoming mail. For that we use the QUMAILQUEUE feature and simscan
which than makes a stream connection to our spamassassin farm.

This gives us the possibility to have a general spam score and an additional
score for SMTP-authed connection. But in the end every mail gets a
spamassassin
header and a score.

Additional, based on user decision saved in the ldap mail gets scanned for 
viruses at smtp-time or afterwards if it is not spam by directing it to
different virus scanner hosts. This is done by maildrop and a normal smtp
transfer. Virus scanner hosts have just one mailroute to our primary mail
system.

SMTP-time scanning uses stream connects through a patched simscan and
clamd-stream-client as we do not want clamd to run on our mailserver,
so we use an extra clamd farm. 

For the smtp-authed score we have changed simscans --enable-spam-auth-user
option not to let mails through unscanned but to add a additional score
to the base score which is transported by an env-var and set through
qmail-smtpd env.

Well, that all is a bit more complex but provides us a very flexible grade
on individual settings.

Greets
Phil.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.