Fetchmail to SMTP question.

Associate
Joined
8 Mar 2004
Posts
888
Location
Leicestershire
Hi all,

Im running a MS Exchange server within a VM on Ubuntu server.
Ive read some posts on the net that you can use "Fetchmail" to grab POP3 emails and then forward them to an STMP server exchange for example.

Is it as simple as editing the .fetchmailrc script to something like below adding a section for each pop box.?
-----------------------
defaults proto POP3 no keep fetchall smtphost smtp.example.net ssl
set no bouncemail
set no spambounce
set logfile /home/mailchecker/.fetchmail.log

poll mail.initfour.nl user "test" pass "test" smtpname [email protected]
----------------

Thanks in advance for any pointers.
 
I use:

poll mail.the-isp.net with proto POP3 and options no dns
user 'john' with pass "notreallyjohnspassword" is '[email protected]' here
smtphost localhost

(excuse the sanitisation, but you get the idea)

to pull mail in from the ISP with fetchmail on a regular cron job and drop it into postfix on the server.

IIRC, if you get email for different addresses in one POP3 mailbox - eg john@someisp and fred@someisp (as some ISP's do), you can use something along the lines of:

user 'john' with pass "notreallyjohnspassword" is * here

to pull email in, then have it deliver it to the appropriate local mailbox.
 
Back
Top Bottom