Solved

fetchmail forwarding to sendmail from pop3 account

Posted on 2002-07-19
5
294 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
  • 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
People Counting Software 2 110
Just want to learn, how Linux D2B works, under Linux bash shell 6 58
PC upgrade to Linux Mint 7 64
High Available Storage based on linux 6 67
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

914 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now