Solved

fetchmail forwarding to sendmail from pop3 account

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

743 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

14 Experts available now in Live!

Get 1:1 Help Now