Mail for X loops back to myself
A little while ago i configured a mailserver using the guide at :
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
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
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.