Re: Postmail configuration
- Philip Beattie a écrit :
> Hi all,- "inbound" mail. configure fetchmail to fetch from the ISP and inject
> We are replacing an old RedHat mail server with a new Debian Sarge mail
> At present our domain with ISP is dom1.com and our domain name on our
> old RedHat server was dom1.com
> We have set up our new Sarge server with domain dom2.com
> We need to (in the short term) pickup all mail for dom1.com from our ISP
> and deliver it to users on our new server (dom2.com). Out-going mail (in
> the short term) needs to appear to come from dom1.com. The users are the
> same on both servers.
into postfix. see below for a sample .fetchmailrc.
- "outbound" mail. use smtp_generic_maps to rewrite foo@... to
smtp_generic_maps = hash:$dir/generic
#use daemon mode, with a sleep of 600 seconds (10 min):
set daemon 600
#set postmaster address
set postmaster <postmaster@...>
#no backscatter: don't bounce, send to postmaster
#instead, bad mail is sent to postmaster
set no bouncemail
#default proto is pop3.
defaults proto pop3
#domain to append to non-fqdn addresses
#inject mail to 192.0.2.25, port 11025.
##### main accounts
#mchilali (services: abuse, dnsbl, catchall, ...)
user "philip" there has password "XXXXXXX"
is "philip" here