[Gllug] Fetchmail > Exchange ....

John Edwards john_ed at cornerstonelinux.co.uk
Wed May 8 23:09:38 UTC 2002


On Wed, May 08, 2002 at 10:26:36PM +0100, Martin Stevens wrote:
> So reading through the man page, 
> 
> poll pop.isp.com with proto POP3 user "*****" there with password "****" -S 10.0.0.2
> 
> will download the mail from the isp and forward it on to the port 25
> on the exchange server to sort out (Where 10.0.0.2 is the exchange 
> server)
> 
> Is that right ?

Not quite, the "-S" is for the command line only. You need to use the 
keyword in the fetchmailrc file:

poll pop.isp.com with proto POP3 user "*****" there with password "****" smarthost 10.0.0.2

You will probably need to add "smtpaddress YOUR_DOMAIN" to get the mail 
server to accept the email, otherwise no domain is appended to the user 
name, ie:

poll pop.isp.com with proto POP3 user "*****" there with password "****" smarthost 10.0.0.2 smtpaddress somewhere.com

This will set the SMTP "RCPT TO" field to user at somewhere.com instead of 
just user.


Another good thing to do is to set a logfile at the top of the fetchmailrc 
file so that the output is saved:

set logfile	/var/log/fetchmail

And maybe add an new entry into /etc/logrotate.d to rotate the log file 
and keep for 5 weeks:

/var/log/fetchmail {
    weekly
    create 0600 root root
    rotate 5
}


-- 
#------------------------------------------------------------#
|      John Edwards    Email: John.Edwards at uk.com            |
|                                                            |
|     "Security vulnerabilities are here to stay."           |
|   Scott Culp, Manager, Microsoft Security Response Center  |
#------------------------------------------------------------#

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list