yet another fetchmail howto

3 Jun

yet another fetchmail howto

Fetchmail “by default” hands off all retrieved e-mail to sendmail. You must
have sendmail configured to add the FQDN to your e-mail address by either
using a .forward file or an alias defined in /etc/aliases. If you must
continue using this alias, you will need to add the FQDN alias to your
exchange server mailbox settings so that it knows to accept e-mail for this
address.

If you want to disable fetchmail from handing off all “fetched” e-mail to
sendmail… use the “smtphost” directive in your .fetchmailrc file. This
will, in essence, open an SMTP connection straight to your Exchange server
for final delivery. Thus leaving the e-mail envelope (headers) intact.

The following is my .fetchmailrc file. The smtphost entry is my internal
Exchange server. The “set invisible” eliminates the fetchmail server from
adding itself to the e-mail headers as one of the “hops” this e-mail took on
its path to its final destination.

Steve Cowles

—————————————
set syslog
set postmaster “scowles”
set bouncemail
set properties “”
set invisible
poll mail.myisp.net with proto POP3 timeout 60
user “swcowles” there with password “my-password” is scowles here
smtphost ms-exchange.mydomain.com