[Mailman-Users] bin/genaliases not generating aliases?

Caesar Samsi cmsamsi at hotmail.com
Thu Dec 15 19:37:54 EST 2016

caesar at mail /usr/local/mailman $ ls -l
total 72
drwxrwsr-x  4 root mailman 4096 Dec 15 13:24 archives
drwxrwsr-x  2 root mailman 4096 Dec 15 13:24 bin
drwxrwsr-x  2 root mailman 4096 Dec 15 13:24 cgi-bin
drwxrwsr-x  2 root mailman 4096 Dec 15 13:24 cron
drwxrwsr-x  2 root mailman 4096 Dec 15 16:25 data
drwxrwsr-x  2 root mailman 4096 Dec 15 13:24 icons
drwxrwsr-x  3 root mailman 4096 Dec 15 13:48 lists
drwxrwsr-x  2 root mailman 4096 Dec 15 16:25 locks
drwxrwsr-x  2 root mailman 4096 Dec 15 14:52 logs
drwxrwsr-x  2 root mailman 4096 Dec 15 13:24 mail
drwxrwsr-x 11 root mailman 4096 Dec 15 13:24 Mailman
drwxrwsr-x 40 root mailman 4096 Dec 15 13:24 messages
drwxrwsr-x  2 root mailman 4096 Dec 15 13:24 pythonlib
drwxrwsr-x 11 root mailman 4096 Dec 15 14:52 qfiles
drwxrwsr-x  2 root mailman 4096 Dec 15 13:24 scripts
drwxrwsr-x  2 root mailman 4096 Dec 15 13:24 spam
drwxrwsr-x 41 root mailman 4096 Dec 15 13:24 templates
drwxrwsr-x  4 root mailman 4096 Dec 15 13:24 tests
On Dec 15, 2016, at 4:36 PM, Caesar Samsi <cmsamsi at hotmail.com<mailto:cmsamsi at hotmail.com>> wrote:

I ran genalias with sudo:
caesar at mail /usr/local/mailman $ sudo bin/genaliases
To finish creating your mailing list, you must edit your /etc/aliases (or
equivalent) file by adding the following lines, and possibly running the
`newaliases' program:

## mailman mailing list
mailman:              "|/usr/local/mailman/mail/mailman post mailman"
mailman-admin:        "|/usr/local/mailman/mail/mailman admin mailman"
mailman-bounces:      "|/usr/local/mailman/mail/mailman bounces mailman"
mailman-confirm:      "|/usr/local/mailman/mail/mailman confirm mailman"
mailman-join:         "|/usr/local/mailman/mail/mailman join mailman"
mailman-leave:        "|/usr/local/mailman/mail/mailman leave mailman"
mailman-owner:        "|/usr/local/mailman/mail/mailman owner mailman"
mailman-request:      "|/usr/local/mailman/mail/mailman request mailman"
mailman-subscribe:    "|/usr/local/mailman/mail/mailman subscribe mailman"
mailman-unsubscribe:  "|/usr/local/mailman/mail/mailman unsubscribe mailman”
caesar at mail /usr/local/mailman $ ls -l data
total 24
-rw-r--r-- 1 root    mailman    10 Dec 15 13:24 last_mailman_version
-rw-rw---- 1 mailman mailman     6 Dec 15 16:25 master-qrunner.pid
-rw-r--r-- 1 root    mailman 14100 Dec 15 13:24 sitelist.cfg

On Dec 15, 2016, at 4:13 PM, Mark Sapiro <mark at msapiro.net<mailto:mark at msapiro.net>> wrote:

On 12/15/2016 03:35 PM, Caesar Samsi wrote:
I’ve attached postfix, mm_cfg.py, main.cf, and master.cf

And the list's content filtering remove all but postfix.txt which is
just as well, because 'postconf -n' and mm_cfg.py are all I wanted to
see anyway.

I have created the initial list mailman (sudo bin/newlist
--urlhost=www.yugi.us<http://www.yugi.us/> --emailhost=mail.yugi.us<http://mail.yugi.us/> mailman)

Ran genaliases, still no aliases file in /usr/local/mailman/data.

What happened when you ran genaliases? Did it produce any output on your
terminal? If so, what? Did you run it via sudo as root or the Mailman
user ('list' in your case I think)?

Here's the relevant parts of mm_cfg.py and postconf -n with comments


# The name of the list Mailman uses to send password reminders
# and similar. Don't change if you want mailman-owner to be
# a valid local part.

Have you created the 'mailman' list?. It must exist before you can start


# Default domain for email addresses of newly created MLs
DEFAULT_EMAIL_HOST = 'mailyugi.us<http://mailyugi.us/>'

Missing a dot - ‘mail.yugi.us<http://mail.yugi.us/>'


# Default host for web interface of newly created MLs
DEFAULT_URL_HOST   = 'www.yugi.us<http://www.yugi.us/>'
# Required when setting any of its arguments.

# The default language for this server.

# Iirc this was used in pre 2.1, leave it for now
USE_ENVELOPE_SENDER    = 0              # Still used?

Yes, it's used, but 0 (False) is the default anyway.

# Uncomment if you use Postfix virtual domains (but not
# postfix-to-mailman.py), but be sure to see
# /usr/share/doc/mailman/README.Debian first.


SMTPHOST = 'localhost'

These are defaults anyway.

POSTFIX_STYLE_VIRTUAL_DOMAINS = ['yugi.us<http://yugi.us/>']

If you want to generate data/virtual-mailman for lists in the
mail.yugi.us<http://mail.yugi.us/> email domain, this should be

POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mail.yugi.us<http://mail.yugi.us/>']


POSTFIX_STYLE_VIRTUAL_DOMAINS = ['yugi.us<http://yugi.us/>', 'mail.yugi.us<http://mail.yugi.us/>']

if you want both.

postconf -n

alias_maps = hash:/etc/aliases,hash:/var/lib/mailman/data/aliases


mydestination = localhost
myhostname = mail.yugi.us<http://mail.yugi.us/>
mynetworks = [::ffff:]/104 [::1]/128
mynetworks_style = host
myorigin = /etc/hostname
readme_directory = no
recipient_delimiter = +
relay_domains = mail.yugi.us<http://mail.yugi.us/>

mail.yugi.us<http://mail.yugi.us/> should probably be a virtual_alias_domain, not a relay_domain.

virtual_alias_domains = yugi.us<http://yugi.us/>

I.e., delete relay_domains and make the above

virtual_alias_domains = yugi.us<http://yugi.us/>, mail.yugi.us<http://mail.yugi.us/>

or maybe just

virtual_alias_domains = mail.yugi.us<http://mail.yugi.us/>

virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf, mysql:/etc/postfix/mysql_virtual_alias_domainaliases_maps.cf, hash:/var/lib/mailman/data/virtual-mailman


virtual_gid_maps = static:8
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf, mysql:/etc/postfix/mysql_virtual_mailbox_domainaliases_maps.cf
virtual_transport = dovecot
virtual_uid_maps = static:150

I don't know what you are actually trying to do with mail to
*@mail.yugi.us<http://mail.yugi.us/> and *@yugi.us<http://yugi.us/>. I.e. which domain(s) have Mailman list
addresses and which do not.

The intent is to have yugi.us<http://yugi.us/> be the mailman domain. So lists would be mymailinglist at yugi.us<mailto:mymailinglist at yugi.us>

mail.yugi.us<http://mail.yugi.us/> just happens to be the mail server name.

But none of this Postfix stuff affects whether genaliases created
data/aliases(.db) and data/virtual-mailman(.db).

My best guess is you are running genaliases as a user that doesn't have
permission to write in Mailman's data/ directory.

I’m running it sudo … sudo bin/genaliases

Are parameters required? or must it be run in a specific directory (but from the bin/ it seems to be run from /usr/local/mailman)

Mark Sapiro <mark at msapiro.net<mailto:mark at msapiro.net>>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list