> Hi there,
> I hope someone can help with this problem:
> We have a Linux server that retrieves mail from a pop-server, using
> fetchmail. Fetchmail has to deliver all mail to our Exchange server, using
> smtp. Well, the mail actually gets to the Exchange server, but it bounces
> because the address of the receiver gets changed. Example: mail for
> etbsrv01 is the Exchange server. So my name disappears from the mail
address
> and is being replaced by a part of the domain name.
> Who has got a clue?
> Thanks,
> Edwin
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