For faster access, I assume it is better to use

        table aliases db:/etc/mail/aliases.db

instead of

        table aliases file:/etc/mail/aliases

It would appear that if you use the latter syntax, OpenSMPTD does not even use the '.db' file, i.e. aliases.db. Am I correct? Sorry, I went through the source but I found it tough going.

Is ony of the other better form for smallish systems, i.e. under 100 users, under 100 aliases?

I ask this because sending emails to an alias worked for me without an 'aliases.db'. I note that some older OpenSMTPD discussions out on the internet gives the impression that 'aliases.db' is needed even it the latter form of the table definition is used. I think that those authors must have been confused with ugly old 'sendmail' which complains if the file 'aliases.db' is out of date relative to 'aliases'.

Note that with OpenSMTPD, if the first form appears in 'smtpd.conf', and the file 'aliases.db' does not exist, then calling 'newaliases' results in a message

/etc/mail/smtpd.conf:6: invalid configuration file /etc/mail/aliases.db for 
table aliases

This is a bit cryptic as the file is not invalid, just missing.

The quick fix is to

        cd /etc/mail

and then either

        makemap aliases
or
        makemap -d hash -o aliases.db aliases

After that, 'newaliases' works nicely. I would have thought that one of the first things OpenSMTPD's version of 'newaliases' did was a 'makemap'.

Regards - Damian

Pacific Engineering Systems International, 277-279 Broadway, Glebe NSW 2037
Ph:+61-2-8571-0847 .. Fx:+61-2-9692-9623 | unsolicited email not wanted here
Views & opinions here are mine and not those of any past or present employer

--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to