LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-31-2008, 01:35 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Admin Loops


I am currently running the following on my email server and I don't know who is to blame for this issue...

- Postfix
- Dovecot
- Spamassassin
- Mailman
- Squirrelmail
- ClamAV
- Amavisd-new

So the problem is really strange. When you send to an email address that does not exist on my domain, you get back a really strange message that looks like this:

This is the Postfix program at host mail.example.org.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

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 attached returned message.

The Postfix program

<admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+adm in+admin+admin+admin+admin+admin+admin+admin+admin+linux@example.org>
(expanded from <linux@example.org>): possible alias database loop for
admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admi n+admin+admin+admin+admin+admin+admin+admin+admin+linux

Final-Recipient: rfc822; admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admi n+admin+admin+admin+admin+admin+admin+admin+admin+linux@example.org
Original-Recipient: rfc822; linux@example.org
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; possible alias database loop for
admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admin+admi n+admin+admin+admin+admin+admin+admin+admin+admin+linux



As you can see the delivery failure is nasty. I don't get the same delivery failure on my personal email server and I beleive that mailman is responsible for the redundant delivery failure above however I am not sure. I went to /etc/mailman/aliases and found this entry:

Code:
# The ultimate loop stopper address
mailman-loop: /var/lib/mailman/data/owner-bounces.mbox
Should I comment that out and restart everything?

Thoughts? Suggestions?
 
Old 01-31-2008, 02:56 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
A stab in the dark, but is 'luser_relay' set to anything in the postfix config?

Dave
 
Old 01-31-2008, 03:17 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Code:
[root@mail mailman]# cat /etc/postfix/main.cf | grep "luser_relay"
# - You use the "luser_relay", "mailbox_transport", or "fallback_transport"
# luser_relay parameters.
# This parameter has precedence over the luser_relay parameter.
# The luser_relay parameter specifies an optional destination address
# The following expansions are done on luser_relay: $user (recipient
# luser_relay works only for the default Postfix local delivery agent.
#luser_relay = $user@other.host
#luser_relay = $local@other.host
luser_relay = admin+$local
Here is what I found...
 
Old 01-31-2008, 03:57 PM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Comment-out luser_relay and the problem should go away.

It's adding 'admin+' to the start of unknown users' email addresses, and attempting to re-deliver the mail, hence the loop.

Dave
 
Old 01-31-2008, 04:39 PM   #5
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Quote:
Originally Posted by ilikejam View Post
Comment-out luser_relay and the problem should go away.

It's adding 'admin+' to the start of unknown users' email addresses, and attempting to re-deliver the mail, hence the loop.

Dave
Dave - thanks for taking the time to review my problem and the suggestion. I will make the change Friday morning and test everything out after I reload Postfix.

Thanks again!
 
Old 01-31-2008, 04:49 PM   #6
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Actually just made the change via VPN and it works great!!!

Thanks so much!
 
Old 01-31-2008, 04:59 PM   #7
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Cool cool.
 
  


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
2K admin now RHEL4 admin (I have some questions) wilsryan Red Hat 5 01-30-2006 12:18 PM
User admin and N/w admin on Gnome hangs ssrini *BSD 2 07-28-2005 07:55 AM
while loops + while : blizunt7 Linux - General 3 12-04-2004 05:27 PM
variable with while loops michael_util Programming 4 08-16-2004 12:07 PM
loops JMK Linux - Newbie 11 04-09-2004 05:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:32 AM.

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