Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix / fetchmail eating mail
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
helmers
Guru
Guru


Joined: 16 Sep 2002
Posts: 553
Location: Stange, Norway

PostPosted: Fri May 02, 2003 8:35 am    Post subject: Postfix / fetchmail eating mail Reply with quote

Hi, I'm having trouble with postfix/fetchmail.

A
Quote:
fetchmail -c
showed that there was mail on my pop3 accounts, so I tried
Quote:
fetchmail -a
, but Mutt shows no new mail. A third run of fetchmail, with the "-v" switch, says "no new messages". So I assume they have been eaten by postfix.

These are the lines I am uncertain of, I got local delivery working with them, but I'd rather not have my mail eaten! :cry:

inet_interfaces = $myhostname, localhost
mydestination = $myhostname, localhost
_________________
C is for Cookies!
Back to top
View user's profile Send private message
helmers
Guru
Guru


Joined: 16 Sep 2002
Posts: 553
Location: Stange, Norway

PostPosted: Fri May 02, 2003 9:14 am    Post subject: Reply with quote

Okay, to make it easier on you, here's some other pieces of information:

"Postconf -n"
Quote:
alias_database = hash:/etc/mail/aliases
alias_maps = hash:/etc/mail/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 10
home_mailbox = .maildir/
inet_interfaces = $myhostname, localhost
local_destination_concurrency_limit = 2
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost
myhostname = Yggdrasil.helmers
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.0.9-r1
sample_directory = /etc/postfix/sample
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
soft_bounce = yes
unknown_local_recipient_reject_code = 450


Also, I got this when trying to send from hotmail to myself:

Quote:
This is the Postfix program at host Yggdrasil.helmers.

I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the message returned below.

The Postfix program


<helmers@localhost.Yggdrasil.helmers>: Name service error for
name=localhost.yggdrasil.helmers type=A: Host not found

Reporting-MTA: dns; Yggdrasil.helmers
Arrival-Date: Fri, 2 May 2003 10:02:01 +0200 (CEST)

Final-Recipient: rfc822; helmers@localhost.Yggdrasil.helmers
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; Name service error for
name=localhost.yggdrasil.helmers type=A: Host not found

_________________
C is for Cookies!
Back to top
View user's profile Send private message
cryos
Retired Dev
Retired Dev


Joined: 08 Mar 2003
Posts: 242
Location: US

PostPosted: Fri May 02, 2003 11:46 am    Post subject: Reply with quote

I am no expert in these issues I must admit, but it looks to me like a DNS issue. Postfix seems to be trying to resolve the host localhost.yggdrasil.helmers and failing. In my destinations I always have $mydomain as well as $myhostname.

I don't know why the final destination is going to localhost.$mydomain either, mine always ends up @$mydomain. I believe all hosts that mail is delivered to must be resolvable to an IP and have an MX record if I am not mistaken. It seems to be something to do with how you are routing mail through Postfix.

I could be totally wrong too :) Just my best guess at where you should be looking! Make sure there is an entry in hosts or the DNS zone files for the hostname you are delivering mail to.
Back to top
View user's profile Send private message
helmers
Guru
Guru


Joined: 16 Sep 2002
Posts: 553
Location: Stange, Norway

PostPosted: Fri May 02, 2003 12:08 pm    Post subject: Reply with quote

You know what, I just decided I don't need all this mail mumbo-jumbo.
I'll just stick with mutt/evolution and spamassassin.

Thanks for answaring though, I'm sure it is a DNS issue too.
_________________
C is for Cookies!
Back to top
View user's profile Send private message
olivierl
n00b
n00b


Joined: 03 May 2003
Posts: 12

PostPosted: Sat May 03, 2003 10:58 am    Post subject: Reply with quote

I am no expert, just install postfix for the first time. I used to run Exim (on Debian).

ANyway, I think the problem you have is your mail being refused by your ISP mail server because postfix submit then as coming from domain "Yggdrasil.helmers".

You should add this to /etc/postfic/main.cf:

sender_canonical_maps = hash:/etc/postfix/canonical


and put something similar to this in /etc/postfix/canonical:

helmers@localhost.Yggdrasil.helmers your_email@your.isp.domain
...
...





This ensure that postfix correctly rewrite the sender information to your real email address. It should help mail servers to get it right.

read /etc/postfix/sample/canonical and /etc/postfix/sample/sample-canonical.cf for more information.


helmers wrote:
You know what, I just decided I don't need all this mail mumbo-jumbo.
I'll just stick with mutt/evolution and spamassassin.



There is a point in configuring a mail server correctly:

Your local mail will be working, so that admin programs (such as the one running by cron) are able to email problems to root.
And by aliasing root to yourself, you'll get these emails.

It's not much but some time it can be very valuable.
You can run security audit tools through cron and get notify by email of anything weird.
If your local email is not working, chance are you'll never see these warnings.

Olivier
Back to top
View user's profile Send private message
helmers
Guru
Guru


Joined: 16 Sep 2002
Posts: 553
Location: Stange, Norway

PostPosted: Sat May 03, 2003 5:28 pm    Post subject: Reply with quote

olivierl wrote:
There is a point in configuring a mail server correctly:

Your local mail will be working, so that admin programs (such as the one running by cron) are able to email problems to root.
And by aliasing root to yourself, you'll get these emails.


This is a very good point. I got it up and running with your help, thanks!
I just hope that it didn't reject anything of importance... :wink:
_________________
C is for Cookies!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum