LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-15-2007, 04:40 AM   #1
v1pEr
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: winxp + suse 10.1 dual boot
Posts: 88

Rep: Reputation: 15
postfix - fetchmail - procmail - spamassassin problem


Hi,

First I'll explain what I'm trying to achieve:

As I've got myself a "storage" computer installed, I wanted it to check for new mail on my several accounts on a certain interval and server these mails through POP3.

This way I would be able to check my mails from suse and windows, on both my notebook and PC, without scattering the mails all around on 4 mail clients.

Another good thing would be that I'd have to train a spam filter only once, instead of 4 times on each mail client.

I also wanted to install a webmail application so I could check all my email accounts at once, even from another computer.

After some research I figured I should go with the following setup:
fetchmail
postfix
procmail
spamassassin
squirrelmail

I think I got fetchmail working well (I see no errors anyway) and the messages seem to be downloaded, but postfix seems to reject them

mails don't arrive anyway (checked with the 'mail' command) and aren't delivered to my Maildir folder either

I've followed this guide

Can someone please help me find out what's going wrong?

I'm especially curious about what caused this:

Apr 14 15:55:00 annelies postfix/qmgr[3052]: 4A48A11CBD0: removed

If I need to post something else (log, config, command output, ...) I'd happily provide the info.

OS: SUSE 10.2 x86_64

Thx in advance!

PS: I'm keeping an eye on mail1 with fetchmail and sent a mail from mail2 to mail1



fetchmail -N -d0 -v -f /home/v1per/.fetchmailrc

Code:
fetchmail: warning: multidrop for in.telenet.be requires envelope option!
fetchmail: warning: Do not ask for support if all mail goes to postmaster!
fetchmail: 6.3.5 querying in.telenet.be (protocol POP3) at Sat 14 Apr 2007 04:14:21 PM CEST: poll started
Trying to connect to 195.130.137.65/110...connected.
fetchmail: POP3< +OK pop s`maHegdelS
fetchmail: POP3> CAPA
fetchmail: POP3< -ERR not implemented
fetchmail: not implemented
fetchmail: Repoll immediately on email1@telenet.be@pop.telenet.be
Trying to connect to 195.130.137.65/110...connected.
fetchmail: POP3< +OK pop s`maHegdelS
fetchmail: POP3> USER email1@telenet.be
fetchmail: POP3< +OK 1333
fetchmail: POP3> PASS *
fetchmail: POP3< +OK .. welcome
fetchmail: POP3> STAT
fetchmail: POP3< +OK 1 2823
1 message for email1@telenet.be at in.telenet.be (2823 octets).
fetchmail: POP3> LIST 1
fetchmail: POP3< +OK 1 2823
fetchmail: POP3> RETR 1
fetchmail: POP3< +OK 2823 octets 
reading message email1@telenet.be@pop.telenet.be:1 of 1 (2823 octets)
Trying to connect to 127.0.0.1/25...connected.
fetchmail: SMTP< 220 v1per.no-ip.org ESMTP Postfix
fetchmail: SMTP> EHLO annelies.storage
fetchmail: SMTP< 250-v1per.no-ip.org
fetchmail: SMTP< 250-PIPELINING
fetchmail: SMTP< 250-SIZE 10240000
fetchmail: SMTP< 250-VRFY
fetchmail: SMTP< 250-ETRN
fetchmail: SMTP< 250-ENHANCEDSTATUSCODES
fetchmail: SMTP< 250-8BITMIME
fetchmail: SMTP< 250 DSN
fetchmail: SMTP> MAIL FROM:<email2@kahosl.be> SIZE=2823
fetchmail: SMTP< 250 2.1.0 Ok
fetchmail: SMTP> RCPT TO:<email1@telenet.be>
fetchmail: SMTP< 250 2.1.5 Ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 End data with <CR><LF>.<CR><LF>
#***********************************fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 2.0.0 Ok: queued as CCD9B11CBD0
 not flushed
fetchmail: POP3> QUIT
fetchmail: POP3< +OK 
fetchmail: SMTP> QUIT
fetchmail: SMTP< 221 2.0.0 Bye
fetchmail: 6.3.5 querying in.telenet.be (protocol POP3) at Sat 14 Apr 2007 04:14:23 PM CEST: poll completed
fetchmail: normal termination, status 0


tail -F /var/log/mail

Code:
Apr 14 15:52:32 annelies postfix/scache[4160]: statistics: start interval Apr 14 15:49:10
Apr 14 15:52:32 annelies postfix/scache[4160]: statistics: domain lookup hits=0 miss=1 success=0%
Apr 14 15:52:32 annelies postfix/scache[4160]: statistics: address lookup hits=0 miss=8 success=0%
Apr 14 15:52:32 annelies postfix/scache[4160]: statistics: max simultaneous domains=1 addresses=1 connection=1
Apr 14 15:53:52 annelies pop3d: Connection, ip=[::ffff:192.168.0.100]
Apr 14 15:53:53 annelies pop3d: LOGIN, user=v1per, ip=[::ffff:192.168.0.100]
Apr 14 15:53:53 annelies pop3d: LOGOUT, user=v1per, ip=[::ffff:192.168.0.100], top=0, retr=0, rcvd=12, sent=39, time=0
Apr 14 15:54:58 annelies postfix/smtpd[4364]: connect from localhost[127.0.0.1]
Apr 14 15:54:59 annelies postfix/smtpd[4364]: 4A48A11CBD0: client=localhost[127.0.0.1]
Apr 14 15:54:59 annelies postfix/cleanup[4367]: 4A48A11CBD0: message-id=<CBDC3E7A816886499A9CD81E49274A88B4025A@studmaildmz.kahosl.be>
Apr 14 15:54:59 annelies postfix/smtpd[4364]: disconnect from localhost[127.0.0.1]
Apr 14 15:54:59 annelies postfix/qmgr[3052]: 4A48A11CBD0: from=<email2@kahosl.be>, size=3230, nrcpt=1 (queue active)
Apr 14 15:55:00 annelies postfix/smtp[4368]: 4A48A11CBD0: to=<email1@telenet.be>, relay=smtp.telenet.be[195.130.137.75]:25, delay=1.4, delays=0.74/0.27/0.3/0.06, dsn=2.0.0, status=sent (250 Ok: queued as 797DE418C)
Apr 14 15:55:00 annelies postfix/qmgr[3052]: 4A48A11CBD0: removed

Last edited by v1pEr; 04-15-2007 at 04:46 AM.
 
Old 04-15-2007, 08:06 AM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Hi.

The mail log looks normal. postfix isn't rejecting the message - the 'removed' line means that the message has been removed from postfix's queue, because postfix has delivered the message.
It looks like the message was relayed to smtp.telenet.be, which may not be what you wanted to happen. The 'status=sent' part shows that the message went OK, so it should be sitting in your email1@telenet.be account waiting to be picked up.

Dave
 
Old 04-15-2007, 09:05 AM   #3
v1pEr
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: winxp + suse 10.1 dual boot
Posts: 88

Original Poster
Rep: Reputation: 15
I don't understand, I've sent a mail from mail2 to mail1.

Then fetchmail is supposed to pick up that message from the mail1 inbox and deliver it locally to procmail.

I only have the message once in the inbox of mail1 (sent from mail2)

Can you please guide me a little further?

thanks in advance
 
Old 04-15-2007, 09:20 AM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
fetchmail has picked up the message, and delivered it to postfix on the localhost. postfix has then relayed the message back to the telenet.be mail servers, instead of delivering it locally, which is why it's still in the mail1 inbox.

Could you post your ~/.fetchmailrc file (without the passwords, of course)?

Dave
 
Old 04-15-2007, 09:28 AM   #5
v1pEr
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: winxp + suse 10.1 dual boot
Posts: 88

Original Poster
Rep: Reputation: 15
Code:
set postmaster "v1per"
set bouncemail
set no spambounce
set properties ""
set daemon 600
poll in.telenet.be with proto POP3
       user 'mail@telenet.be' there with password 'pass' is 'mail1@telenet.be' 'username' 'pass' here options keep fetchall
I used fetchmailconf to set this up
 
Old 04-15-2007, 09:54 AM   #6
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
The problem is your 'here' username is set to mail1@telenet.be . postfix sees this and (quite correctly) forwards the mail on to the telenet.be mail exchange.
Your 'here' username should be the Unix username of your local user. The last line should look something like:
Code:
user 'mail@telenet.be' there with password 'pass' is 'v1per' here options keep fetchall
if mail is to be delivered locally.

Dave
 
Old 04-15-2007, 10:05 AM   #7
v1pEr
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: winxp + suse 10.1 dual boot
Posts: 88

Original Poster
Rep: Reputation: 15
wow thx dude, you're the master !

This was indeed te problem everything else is working fine!

If I ever come to glasgow, I'll bring you some belgian beers ;-)

I owe you one,
thx
 
Old 04-15-2007, 10:11 AM   #8
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Nice one
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix - fetchmail - procmail - spamassassin problem v1pEr SUSE / openSUSE 1 04-15-2007 04:43 AM
postfix - procmail, fetchmail varun_saa Mandriva 3 09-11-2005 12:53 AM
fetchmail procmail spamassassin VincentB Linux - Software 4 08-24-2004 01:35 PM
good email setup? fetchmail -> procmail -> spamassassin -> evolution xmnemonic Linux - Software 0 10-12-2003 04:33 PM
Spamassassin conf with fetchmail, postfix, procmail, kmail iihay Linux - Networking 0 05-25-2003 09:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration