Mail for X loops back to myself

Hello,

A little while ago i configured a mailserver using the guide at : https://library.linode.com/email/postfi … 0.19-mysql">https://library.linode.com/email/postfix/postfix2.9.6-dovecot2.0.19-mysql. A while later we had the need to create mailing lists and so i've been installing mailman. As far as i can tell the installation is okay, i can get to the administrative interface via http://lists.domain.com/admin and add members etc. Any member i add gets notified correctly.

Where i have a problem is that when i send an email to the mailing list i get the mail bounced back with the error that it looks back to myself. I've done a vast amount of googling and can't get anywhere.

Having just discovered https://library.linode.com/email/mailma … -6-squeeze">https://library.linode.com/email/mailman/debian-6-squeeze, i notice it mentions i should have configured mailman before postfix etc and so not sure how to treat that.

So, who would mind helping me work out what's wrong with my configuration? Happy to make a PayPal donation to anyone who can solve my issue for their time. Happy to upload configuration files upon request but would rather not post everything yet as it'll possibly confuse / dilute.

1 Reply

From: http://www.postfix.org/VIRTUAL_README.html

Here is an example of a virtual mailbox domain "example.com": 

 1 /etc/postfix/main.cf:
 2     virtual_mailbox_domains = example.com ...more domains...
 3     virtual_mailbox_base = /var/mail/vhosts
 4     virtual_mailbox_maps = hash:/etc/postfix/vmailbox
 5     virtual_minimum_uid = 100
 6     virtual_uid_maps = static:5000
 7     virtual_gid_maps = static:5000
 8     virtual_alias_maps = hash:/etc/postfix/virtual
 9 
10 /etc/postfix/vmailbox:
11     info@example.com    example.com/info
12     sales@example.com   example.com/sales/
13     # Comment out the entry below to implement a catch-all.
14     # @example.com      example.com/catchall
15     ...virtual mailboxes for more domains...
16 
17 /etc/postfix/virtual:
18     postmaster@example.com postmaster

Notes: 
•
 Line 2: The virtual_mailbox_domains setting tells Postfix that example.com is a so-called virtual mailbox domain. If you omit this setting then Postfix will reject mail (relay access denied) or will not be able to deliver it (mail for example.com loops back to myself). 

Assuming you are doing virtual domains, looks like one of your domains is missing from virtualmailboxdomains = in main.cf

Just guessing but maybe localhost is needed for the mail list software, or it needs or send mail via your real domain. I don't run a mail list, so I could be barking up the wrong tree.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct