Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mail problems
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
Detraw
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2003
Posts: 84
Location: Sweden

PostPosted: Tue Jun 24, 2003 7:02 pm    Post subject: mail problems Reply with quote

Hi, I have set up my server to be able to send mail with postfix, I was able to send mail with mutt, but all of a sudden no mail reached its destination, I didn't make any change in the config files, what could be wrong?

-Detraw
_________________
damn this Linux world is big :)
Back to top
View user's profile Send private message
devon
l33t
l33t


Joined: 23 Jun 2003
Posts: 943

PostPosted: Tue Jun 24, 2003 8:47 pm    Post subject: Reply with quote

What does the log file say? Should be /var/log/maillog.
Back to top
View user's profile Send private message
Detraw
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2003
Posts: 84
Location: Sweden

PostPosted: Tue Jun 24, 2003 8:53 pm    Post subject: Reply with quote

this is the end of my last log (/var/log/mail/current):
Code:
Jun 24 22:07:29 [postfix/smtp] warning: relayhost configuration problem: detraw.myip.org
Jun 24 22:07:29 [postfix/smtp] 2FA2B36ED5: to=<d_tenninge@hotmail.com>, relay=none, delay=3145, status=deferred (mail for detraw.myip.org loops back to myself)
Jun 24 22:07:29 [postfix/smtp] 256E236ECB: to=<d_tenninge@hotmail.com>, relay=none, delay=3389, status=deferred (mail for detraw.myip.org loops back to myself)
Jun 24 22:07:29 [postfix/smtp] 3B96A36ECA: to=<d_tenninge@hotmail.com>, relay=none, delay=3725, status=deferred (mail for detraw.myip.org loops back to myself)
Jun 24 22:07:29 [postfix/smtp] warning: mailer loop: best MX host for detraw.myip.org is local
Jun 24 22:07:29 [postfix/smtp] warning: relayhost configuration problem: detraw.myip.org
Jun 24 22:07:29 [postfix/smtp] warning: mailer loop: best MX host for detraw.myip.org is local
Jun 24 22:07:29 [postfix/smtp] warning: relayhost configuration problem: detraw.myip.org
Jun 24 22:07:29 [postfix/smtp] 42F6636EC2: to=<d_tenninge@hotmail.com>, relay=none, delay=3798, status=deferred (mail for detraw.myip.org loops back to myself)
Jun 24 22:07:29 [postfix/smtp] 5832836EC0: to=<d_tenninge@hotmail.com>, relay=none, delay=3876, status=deferred (mail for detraw.myip.org loops back to myself)
Jun 24 22:07:29 [postfix/qmgr] D823636ECD: to=<d_tenninge@hotmail.com>, relay=none, delay=3653, status=deferred (mail for detraw.myip.org loops back to myself)
Jun 24 22:24:03 [postfix/qmgr] B36B736ED6: from=<root@server.detraw.myip.org>, size=442, nrcpt=1 (queue active)
Jun 24 22:24:03 [postfix/qmgr] B36B736ED6: to=<d_tenninge@hotmail.com>, relay=none, delay=1580, status=deferred (mail for detraw.myip.org loops back to myself)
Jun 24 22:57:23 [postfix/qmgr] 35FAC36E3E: from=<apache@server.detraw.myip.org>, size=1244, nrcpt=1 (queue active)
Jun 24 22:57:23 [postfix/qmgr] 5217336E83: from=<apache@server.detraw.myip.org>, size=1244, nrcpt=1 (queue active)
Jun 24 22:57:23 [postfix/qmgr] 507E636EBE: from=<apache@server.detraw.myip.org>, size=1137, nrcpt=1 (queue active)
Jun 24 22:57:23 [postfix/qmgr] 67EB636E97: from=<apache@server.detraw.myip.org>, size=1350, nrcpt=1 (queue active)
Jun 24 22:57:23 [postfix/qmgr] B36B736ED6: from=<root@server.detraw.myip.org>, size=442, nrcpt=1 (queue active)
Jun 24 22:57:23 [postfix/qmgr] D6ED236E9D: from=<apache@server.detraw.myip.org>, size=1350, nrcpt=1 (queue active)
Jun 24 22:57:23 [postfix/qmgr] E902F36EBB: from=<apache@server.detraw.myip.org>, size=1419, nrcpt=1 (queue active)
Jun 24 22:57:23 [postfix/qmgr] EDF7D36E88: from=<apache@server.detraw.myip.org>, size=1244, nrcpt=1 (queue active)
Jun 24 22:57:26 [postfix/smtp] warning: mailer loop: best MX host for detraw.myip.org is local
Jun 24 22:57:26 [postfix/smtp] warning: relayhost configuration problem: detraw.myip.org
Jun 24 22:57:26 [postfix/smtp] warning: mailer loop: best MX host for detraw.myip.org is local
Jun 24 22:57:26 [postfix/smtp] warning: relayhost configuration problem: detraw.myip.org
Jun 24 22:57:26 [postfix/smtp] warning: mailer loop: best MX host for detraw.myip.org is local
Jun 24 22:57:26 [postfix/smtp] warning: relayhost configuration problem: detraw.myip.org
Jun 24 22:57:26 [postfix/smtp] warning: mailer loop: best MX host for detraw.myip.org is local
Jun 24 22:57:26 [postfix/smtp] warning: relayhost configuration problem: detraw.myip.org
Jun 24 22:57:26 [postfix/smtp] warning: mailer loop: best MX host for detraw.myip.org is local
Jun 24 22:57:26 [postfix/smtp] warning: relayhost configuration problem: detraw.myip.org
Jun 24 22:57:26 [postfix/smtp] 35FAC36E3E: to=<d_tenninge@hotmail.com>, relay=none, delay=7753, status=deferred (mail for detraw.myip.org loops back to myself)
Jun 24 22:57:26 [postfix/smtp] 5217336E83: to=<d_tenninge@hotmail.com>, relay=none, delay=7693, status=deferred (mail for detraw.myip.org loops back to myself)
Jun 24 22:57:26 [postfix/smtp] 67EB636E97: to=<d_tenninge@hotmail.com>, relay=none, delay=7472, status=deferred (mail for detraw.myip.org loops back to myself)
Jun 24 22:57:26 [postfix/smtp] 507E636EBE: to=<d_tenninge@hotmail.com>, relay=none, delay=7028, status=deferred (mail for detraw.myip.org loops back to myself)
Jun 24 22:57:26 [postfix/smtp] B36B736ED6: to=<d_tenninge@hotmail.com>, relay=none, delay=3583, status=deferred (mail for detraw.myip.org loops back to myself)
Jun 24 22:57:26 [postfix/qmgr] EDF7D36E88: to=<d_tenninge@hotmail.com>, relay=none, delay=7594, status=deferred (mail for detraw.myip.org loops back to myself)
Jun 24 22:57:26 [postfix/qmgr] E902F36EBB: to=<d_tenninge@hotmail.com>, relay=none, delay=7113, status=deferred (mail for detraw.myip.org loops back to myself)
Jun 24 22:57:26 [postfix/qmgr] D6ED236E9D:

_________________
damn this Linux world is big :)
Back to top
View user's profile Send private message
devon
l33t
l33t


Joined: 23 Jun 2003
Posts: 943

PostPosted: Tue Jun 24, 2003 11:14 pm    Post subject: Reply with quote

Quote:
Jun 24 22:57:26 [postfix/qmgr] E902F36EBB: to=<d_tenninge@hotmail.com>, relay=none, delay=7113, status=deferred (mail for detraw.myip.org loops back to myself)


Without more information, it looks like the MX record for <detraw.myip.org> points back to your server, but Postfix doesn't know it should accept email for the domain. I can force the same error by removing my domain from the "domains" file for Postfix and restarting.

When did this start happening? Do you have logs from when this all worked?
Back to top
View user's profile Send private message
Detraw
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2003
Posts: 84
Location: Sweden

PostPosted: Wed Jun 25, 2003 12:03 pm    Post subject: Reply with quote

this is from the today log, but I haven't send any mail today:
Code:
Jun 25 11:24:31 [postfix/smtp] warning: mailer loop: best MX host for detraw.myip.org is local
Jun 25 11:24:31 [postfix/smtp] warning: relayhost configuration problem: detraw.myip.org
Jun 25 11:24:31 [postfix/smtp] warning: mailer loop: best MX host for detraw.myip.org is local
Jun 25 11:24:31 [postfix/smtp] warning: relayhost configuration problem: detraw.myip.org

_________________
damn this Linux world is big :)
Back to top
View user's profile Send private message
devon
l33t
l33t


Joined: 23 Jun 2003
Posts: 943

PostPosted: Wed Jun 25, 2003 6:12 pm    Post subject: Reply with quote

Can you post your postfix main.cf file? Don't include lines that begin with # though. :)
Back to top
View user's profile Send private message
Detraw
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2003
Posts: 84
Location: Sweden

PostPosted: Wed Jun 25, 2003 6:51 pm    Post subject: Reply with quote

This is my main.cf file:
Code:

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
mydomain = detraw.myip.org
myorigin = $myhostname
inet_interfaces = $myhostname, localhost
mydestination = $myhostname, localhost.$mydomain
unknown_local_recipient_reject_code = 450
relay_domains = $mydestination
relayhost = $mydomain
alias_maps = hash:/etc/mail/aliases
alias_database = hash:/etc/mail/aliases
home_mailbox = .maildir/
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10
debug_peer_level = 2
debugger_command =
    PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
    xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
manpage_directory = /usr/share/man
sample_directory = /etc/postfix/sample
readme_directory = /usr/share/doc/postfix-2.0.9

_________________
damn this Linux world is big :)
Back to top
View user's profile Send private message
psp
Tux's lil' helper
Tux's lil' helper


Joined: 06 Aug 2002
Posts: 120
Location: Cape Town, South Africa

PostPosted: Wed Jun 25, 2003 7:07 pm    Post subject: Reply with quote

Hello,

I think it's this:
Code:

relayhost = $mydomain

Set this to:
Code:

relayhost =


You are telling postfix to relay all mail to the host detraw.myip.org which is itself.

Hope this helps.
Back to top
View user's profile Send private message
Detraw
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2003
Posts: 84
Location: Sweden

PostPosted: Wed Jun 25, 2003 8:53 pm    Post subject: Reply with quote

Perfect!! now it works again, Thanks for all your help everyone!!

-Detraw
_________________
damn this Linux world is big :)
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