Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have successfully installed and configured postfix and mailman and everything works correctly. The server FQDN is My problem is that I would like mails sent to subscribers to appear as if they came from instead of

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/

myorigin = /etc/mailname
myhostname =
mydomain =
alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
alias_database = hash:/etc/aliases
#mydestination =, lists,, localhost
mydestination = $mydomain $myhostname localhost
relayhost =
mynetworks = [::ffff:]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
home_mailbox = Maildir/
inet_protocols = all
mailman_destination_recipient_limit = 1
share|improve this question

OK, I finally got it after reading this very thorough HOWTO here.

  1. in /etc/postfix/ --> mydomain =
  2. in /etc/postfix/ --> myorigin = $mydomain (i.e. the same -
  3. in /etc/mailman/ --> DEFAULT_EMAIL_HOST = ''
  4. in /etc/mailname it's OK to leave

P.S.: The disappearing of the dev mailing list from the Mailman web interface was because of directory permissions/ownerships.

share|improve this answer

Change this in mailman.


You should check the values for DEFAULT_EMAIL_HOST and DEFAULT_URL_HOST in Make any necessary changes in the file, not in the file. If you change either of these two values, you'll want to add the following afterwards in the file:


You will want to run the bin/ to change the domain of any existing lists.

share|improve this answer
I changed those two variables in /etc/mailman/ from to The line add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) was already there so I didn't have to add it. Then ran: /usr/lib/mailman/bin/ But it said: This script is intended to be run as a bin/withlist script... So I eventually ran: withlist -l -r fix_url dev Finally restarted the mailman service. Now on the web interface: the dev list has disappeared. – Pavel Tankov Apr 13 '13 at 17:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.