?
Solved

fetchmail forwarding to sendmail from pop3 account

Posted on 2002-07-19
5
Medium Priority
?
304 Views
Last Modified: 2013-12-15
hi

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

RH7.3

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?

ben

0
Comment
Question by:bendecko
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 1

Accepted Solution

by:
foogirl earned 800 total points
ID: 7165955
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.
0
 
LVL 1

Expert Comment

by:foogirl
ID: 7165968
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.
0
 
LVL 1

Author Comment

by:bendecko
ID: 7166277
hi,

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

regards

bendecko
0
 
LVL 1

Expert Comment

by:foogirl
ID: 7166368
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

http://tuxedo.org/~esr/fetchmail/fetchmail-man.html#24

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.
0
 
LVL 1

Author Comment

by:bendecko
ID: 7168733
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.

bendecko
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month9 days, 5 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question