Quote:
Originally posted by balki
ok,
thanks !! but I have also another question? how can I configure it like a email-relay? I mean, how can I give all the mails from my linux ( checked by spamassassin) to Exchange Server ? MTA --> MTA ?
thanks,
Jonay
|
Take a look at the postfix documentation regarding the "transport" table. i.e.
Code:
# cat /etc/postfix/transport
mydomain.com :[exchange.mydomain.com]
This is what I do. I frontend my exchange server with postfix; which also calls spamassassin prior to relaying to the exchange server.
NOTE: Prior to making this simple transport change, be sure you configure postfix to vaildate the recipients on your exchange server prior to relaying. Otherwise, an e-mail addressed to
bogus@mydomain.com will be forwared to your exchange server; which will then issue a bounce back to a non-existant address. In postfix, this is done by configuring the "relay_recipient_maps". FWIW: I configure postfix to issue an LDAP request to my exchange server to validate the recipient e-mail address (mailbox), but you can also simply create a file with a list of valid mailbox's on your exchange server. See the postfix documentation regarding the relay_recipient_maps.
Long pause...
OK, I just re-read this thread. If your using fetchmail, then you would not have the problem I describe above. I was referring to a live MTA that receives e-mail directly from the internet, not piped through fetchmail. But I still "think" you may need to set the "relay_recipient_maps" in postfix before it will relay to your exchange server using the transport maps. Unfortunately, I have no way of testing this at the moment.