• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 326
  • Last Modified:

fetchmail forwarding to sendmail from pop3 account


i've got a pop3 account with a catchall@domainname.com mails appearing in

i've got sendmail working so that i can send out via smtp and deliver messages locally


i need to get fetchmail working to download my pop3 messages and forward then in the same box to port 25 for sendmail to deal with

this is my fetchmailrc file

# Configuration created Sat Jul 20 01:13:15 2002 by fetchmailconf
set syslog
set postmaster "postmaster"
set bouncemail
set no spambounce
set properties ""
poll pop.time.net.my with proto POP3 interval 60
user 'myusername' there with password 'mypassword' is 'jae.tan' 'karl.omeara' here

all the mail is sent to root.   it doesn't differntiate mails to jae.tan or karl.omeara?  

any ideas?


  • 3
  • 2
1 Solution
I think your problem is in the last line. It is, explained:

user 'pop3username' there with password 'pop3password' is 'localuser' here

pop3username is the user name on your pop3 account.
pop3password is (fair enough) your pop3 password.
localuser is some local user that exist on the system, e.g. your own login.

fetchmail won't sort the mail into different accounts.

You could use procmail to filter based on the To: header of the incoming mails, e.g. for putting them into different mail folders or for forwarding them to a different account.

For a large number of accounts, this is a bit awkward. If it is just to separate "webmaster@..." from personal mail, a set of procmail rules will do.

I assume that the users jae.tan and karl.omeara don't exist on your system, that's why the mail is delivered to root.
What you might use is fetchmails maildrop feature, which essentially delivers the mail unchanged to the local smtp server. This can cause nasty mail loops and loos of mail, there is a very concise explanation in the fetchmail manpage.

If you want that and need help with it, post a comment, but I don't promise it will work.
bendeckoAuthor Commented:

YES! thats exactly what i want it do. How do I set up the maildrop feature? _nasty_ mailloops included.

Local I can send mail to local users just using sendmail with no problem.   So I guess correctly addressed mail from the pop3 account shouldn't have any problems being correctly delivered.

karl.omeara & jae.tan ARE users on the system - that is why i  couldn't figure out why their internet mail is being delivered to root whilst local mail is being correctly delivered (see above)

thanks for the help, let me know what you think


Might be a syntax issue - you specify two users, separated by a space, where only one should be in the config file. No errors from fetchmail there?

Anyway. Maildrop, as explained on


would then be:

poll pop.provider.net localdomains loonytoons.org toons.org:
        user 'pop3user' with pass 'pop3pass' to * here

... where the localdomains specify the domains you accept mails for (AFAIU errors here result in mail loops).

Please be careful, I haven't used this. And you might want to check the other configuration examples in the manpage.
bendeckoAuthor Commented:
wonderful that works a treat

will it remove the messages from the pop3 box too?  theres only 10mb capacity in there so it needs to be flushed.

thanks again here's a A to get you started.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now