Skip to content

Using Fetchmail to deliver to another SMTP host and user

If you want to fetch mail from several accounts and relay them to another SMTP host and user, you can use fetchmail. Define a .fetchmailrc like this:

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 user@domain.org
# more accounts to poll... 

    1 Comment ( Add comment / trackback )

    1. (permalink)
      Comment by Gilberto
      On May 4, 2015 at 13:48

      Hi
      How can I achieve the same goal, but without user pass??
      Many users don’t want share their password with other person… Even with the IT staff…
      Thanks