Re: why do I have 2 aliases.db files?
Michael P. Soulier <[EMAIL PROTECTED]> wrote: > I just noticed that I have one in /etc/mail and one in /etc, and > postfix is reading the one in /etc which the newaliases command hasn't > touched in ages 'cause it's been updating the one in /etc/mail. That is not the default behavior. From sendmail(1), which is the Postfix to Sendmail compatibility interface: newaliases Initialize the alias database. If no input file is specified (with the -oA option, see below), the program processes the file(s) specified with the alias_database configuration parame- ter. If no alias database type is specified, the program uses the type specified with the default_database_type configuration parameter. This mode of operation is implemented by running the postalias(1) command. % postconf -d | grep '^alias_' alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases So, the newaliases command should be modifying the alias database in /etc unless you changed this in your main.cf. But if that were the case, Postfix would also *read* for aliases in that non-default location. What is the output of the following command on your machine? % man sendmail | grep Postfix | head -1 -- Sahil Tandon <[EMAIL PROTECTED]> ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: why do I have 2 aliases.db files?
On Sun, Nov 09, 2008 at 04:30:24AM -0800, Jeremy Chadwick wrote: > The only piece of /etc/mail which is even remotely related to postfix is > /etc/mail/mailer.conf, which tells mailwrapper(1) what actual binaries ^^ That should have been mailwrapper(8). -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: why do I have 2 aliases.db files?
On Sun, Nov 09, 2008 at 07:19:05AM -0500, Michael P. Soulier wrote: > I just noticed that I have one in /etc/mail and one in /etc, and > postfix is reading the one in /etc which the newaliases command hasn't > touched in ages 'cause it's been updating the one in /etc/mail. It sounds like your machine has survived many upgrades of sendmail. At one point, /etc/aliases (and /etc/aliases.db) were the common path for sendmail. That has since changed to /etc/mail/aliases and /etc/mail/aliases.db. Note that /etc/aliases today is a symlink to /etc/mail/aliases. AFAIK, this is for "ease of transition". > /etc/mail looks like a sendmail thing. Should I just symlink > /etc/aliases.db to /etc/mail/aliases.db if I'm running postfix? Absolutely not. Postfix should not be using /etc/mail **at all**. If you have your postfix configuration using that directory, you probably shouldn't have. The only piece of /etc/mail which is even remotely related to postfix is /etc/mail/mailer.conf, which tells mailwrapper(1) what actual binaries to run when using things like "newaliases" in /usr/bin, etc. The aliases and aliases.db files in a default postfix installation are in /usr/local/etc/postfix. As I said, if you've changed these around in your own postfix configuration, that's your own fault/doing. :-) Depending upon what you've done with your own postfix configuration, you should delete /etc/aliases.db, and ensure /etc/aliases is a symlink to mail/aliases (e.g. /etc/mail/aliases). If there's any question about this, re-read what I've written a couple times; I know that seeing the word "aliases" 50 times in a row can throw people into confusion (I speak from experience). -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"