I have successfully installed and configured postfix and mailman and everything works correctly. The server FQDN is lists.example.com. My problem is that I would like mails sent to subscribers to appear as if they came from announce@example.com instead of announce@lists.example.com?
My system details are:
postfix 2.9.6
mailman 2.1.14
Ubuntu 12.04
Here is the most significant part of the postfix configuration (/etc/postfix/main.cf):
myorigin = /etc/mailname
myhostname = lists.example.com
mydomain = example.com
alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
alias_database = hash:/etc/aliases
#mydestination = lists.example.com, lists, localhost.example.com, localhost
mydestination = $mydomain $myhostname localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
home_mailbox = Maildir/
inet_protocols = all
mailman_destination_recipient_limit = 1
Best Answer
OK, I finally got it after reading this very thorough HOWTO here.
/etc/postfix/main.cf
--> mydomain = example.com/etc/postfix/main.cf
--> myorigin = $mydomain (i.e. the same - example.com)/etc/mailman/mm_cfg.py
--> DEFAULT_EMAIL_HOST = 'example.com'/etc/mailname
it's OK to leave lists.example.comP.S.: The disappearing of the dev mailing list from the Mailman web interface was because of directory permissions/ownerships.