The FreeBSD Diary |
![]() |
(TM) | Providing practical examples since 1998If you buy from Amazon USA, please support us by using this link. |
|
Mailman - additional virtual domains
14 April 2006
|
|
In a recent Mailman article, we learned how to install and configure Mailman with Postfix on FreeBSD. We added a single virtual domain, lists.freebsddiary.org. Today, I'll add in lists.freshports.org. NOTE: to avoid the spambots, I have changed some instances of lists.freshports.org to lists.example.org. Please keep that in mind. NOTE: this article assumes you have set Mailman up as shown in the previous article. |
|
Creating the new list
|
|
To create the new list:
This will send out a list creation email such as this:
In this email, the URLs refer to havoc.example.org, which is the hostname of the system on which I installed Mailman. The URL should be lists.freshports.org. I will fix that with this command: bin/withlist -l -r fix_url freshports-beta --urlhost=lists.freshports.org With this change, I was able to browse to the mailman interface and see the lists: http://lists.freshports.org/mailman/listinfo |
|
Making email work
|
|
I then tried to send email to the list. It failed: This is the Postfix program at host m21.unixathome.org. I'm sorry to have to inform you that your message could not be be delivered to one or more recipients. It's attached below. For further assistance, please send mail to
Ahh yes, of course, I didn't tell Postfix about this new domain it must handle.
To fix the above, I added this entry to
lists.freshports.org mailman: After making any changes to this file, you need to refresh the database: postmap /usr/local/etc/postfix-config/transport
I also let Postfix know that it should accept mail for lists.freshports.org
by adding this entry to relay_domains = lists.freebsddiary.org, lists.freshports.org
If you already have a With that change, mail for that mailing list worked! |