openSUSE Forums > Network/Internet » MTA or postfix don`t put external mail in users post folder

Go Back   openSUSE Forums > Network/Internet
Forums FAQ Members List Search Today's Posts Mark Forums Read


Network/Internet Questions about internet applications, network configuration, usage (SAMBA, network printing, NFS)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-May-2009, 11:48
Puzzled Penguin
 
Join Date: May 2009
Posts: 4
mhlinux hasn't been rated much yet
Default MTA or postfix don`t put external mail in users post folder

openSUSE 11
My mail from an external pop3 account disappears somewhere and isn`t delivered to the correct user`s post folder.(user1, user2 and root). Internal mail is working correctly.
I use openSUSE 11 MTA an I guess postfix on a single linux client.
I think everything worked correctly before I added the second user.
Does anybody know a solution?
Reply With Quote
  #2 (permalink)  
Old 06-May-2009, 18:10
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,238
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: MTA or postfix don`t put external mail in users post fol

What are you using to fetch the external mail? fetchmail? Have you checked its configuration?
Reply With Quote
  #3 (permalink)  
Old 07-May-2009, 03:18
Puzzled Penguin
 
Join Date: May 2009
Posts: 4
mhlinux hasn't been rated much yet
Default Re: MTA or postfix don`t put external mail in users post fol

I use fetchmail for polling.
I think it works correctly.
Reply With Quote
  #4 (permalink)  
Old 07-May-2009, 03:26
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,238
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: MTA or postfix don`t put external mail in users post fol

There is no need to have any doubts. It's easy to verify. Fetchmail leaves a log in /var/log/fetchmail. You should see that fetchmail is handing it over to postfix at localhost:25. Next look at /var/log/mail. Postfix should log that mail is coming from fetchmail and tell you where it has delivered it. It should go to a local mailbox.
Reply With Quote
  #5 (permalink)  
Old 07-May-2009, 14:34
Puzzled Penguin
 
Join Date: May 2009
Posts: 4
mhlinux hasn't been rated much yet
Default Re: MTA or postfix don`t put external mail in users post fol

Well, that`s what fetchmail logs:

fetchmail: awakened at Thu May 7 20:37:57 2009
fetchmail: 1 message for linux@mhammerbacher.de at pop.1und1.de (1896 octets).
fetchmail: reading message linux@mhammerbacher.de@pop.1und1.de:1 of 1 (1896 octets) flushed
fetchmail: sleeping at Thu May 7 20:38:05 2009 for 120 seconds

I think flushed is not good, is it?

Now my postfix log:

May 7 21:00:23 mphlinux postfix/smtpd[20896]: connect from localhost[127.0.0.1]
May 7 21:00:23 mphlinux postfix/smtpd[20896]: 877AAA4768: client=localhost[127.0.0.1]
May 7 21:00:23 mphlinux postfix/cleanup[20899]: 877AAA4768: message-id=<385499953AB44B5F935BC9E6078D5DCF@mphsp>
May 7 21:00:23 mphlinux postfix/qmgr[3034]: 877AAA4768: from=<mail@mhammerbacher.de>, size=2244, nrcpt=1 (queue active)
May 7 21:00:23 mphlinux postfix/smtp[20900]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
May 7 21:00:23 mphlinux postfix/smtpd[20896]: disconnect from localhost[127.0.0.1]
May 7 21:00:23 mphlinux postfix/smtp[20900]: 877AAA4768: to=<postfix@localhost.site>, orig_to=<postfix@localhost>, relay=none, delay=0.18, delays=0.16/0.02/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
May 7 21:05:42 mphlinux postfix/qmgr[3034]: 877AAA4768: from=<mail@mhammerbacher.de>, size=2244, nrcpt=1 (queue active)
May 7 21:05:42 mphlinux postfix/smtp[21023]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
May 7 21:05:42 mphlinux postfix/smtp[21023]: 877AAA4768: to=<postfix@localhost.site>, orig_to=<postfix@localhost>, relay=none, delay=319, delays=319/0.02/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
May 7 21:15:42 mphlinux postfix/qmgr[3034]: 18BF0A4604: from=<mail@mhammerbacher.de>, size=2205, nrcpt=1 (queue active)
May 7 21:15:42 mphlinux postfix/qmgr[3034]: 877AAA4768: from=<mail@mhammerbacher.de>, size=2244, nrcpt=1 (queue active)
May 7 21:15:42 mphlinux postfix/smtp[21051]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
May 7 21:15:42 mphlinux postfix/smtp[21052]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
May 7 21:15:43 mphlinux postfix/smtp[21051]: 877AAA4768: to=<postfix@localhost.site>, orig_to=<postfix@localhost>, relay=none, delay=919, delays=919/0.04/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
May 7 21:15:43 mphlinux postfix/smtp[21052]: 18BF0A4604: to=<postfix@localhost.site>, orig_to=<postfix@localhost>, relay=none, delay=2258, delays=2258/0.04/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
May 7 21:22:24 mphlinux postfix/postalias[21088]: warning: /etc/aliases, line 86: name must be local


Maybe this is important too:

mphlinux:~ # newaliases
postalias: warning: /etc/aliases, line 86: name must be local
mphlinux:~ #

There is no line 86 in the aliases file???

Thank you once more for your help.
Reply With Quote
  #6 (permalink)  
Old 07-May-2009, 18:19
Puzzled Penguin
 
Join Date: May 2009
Posts: 4
mhlinux hasn't been rated much yet
Default Re: MTA or postfix don`t put external mail in users post fol

I finally found the Problem.
The virus scanner wasn´t running because of a missing database.
Although I turned avamis off in the MTA, Postfix still tried to hand over the mail to avamis. I restarted avamis and installed the database and finally it works.
Thank you for your help!
Now my next challenge is to direct each user´s external mail into its mail folder.
Does anybody know a good How To?
Reply With Quote
  #7 (permalink)  
Old 07-May-2009, 18:26
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,238
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: MTA or postfix don`t put external mail in users post fol

By default any user that has a login account will find their mailbox in /var/spool/mail/<user>. This should be created automatically when mail arrives.

In your /etc/fetchmailrc recipe it should look like:

... user "somebody@some.domain" ... is "user" here ...

This will deliver to /var/spool/mail/user, and this is where your POP server should look for it.

PS: "flushed" is just a term meaning fetchmail passed all the contents of the mail to the mail server. It was put there to scare non-technical users.
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2