Solved

fetchmail forwarding to sendmail from pop3 account

Posted on 2002-07-19
5
297 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 200 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

740 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