Re: [SOLVED]update etc/aliases.db



Ernst-Magne Vindal wrote:

Hmm...found it, I just run newaliases and /etc/init.d/postfix reload.




I use a little shell script (located in /usr/local/sbin):

#!/bin/sh

echo "Updating Postfix configuration"
postmap /etc/postfix/relocated
postmap /etc/postfix/transport
postmap hash:/etc/postfix/sasl_passwd
postmap hash:/etc/postfix/helo_checks
postmap hash:/etc/postfix/sender_checks
postmap hash:/etc/postfix/client_checks
newaliases
postfix reload

Whenever I update any of the components of my postfix configuration, I run this script. You can tailor it to your particular configuration very easily.

-Roberto

--
Roberto C. Sanchez
http://familiasanchez.net/~roberto


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx




Relevant Pages

  • Re: Postfix-Sender and recipient restriction problem
    ... I do recommend an upgrade to a newer version. ... postmap sender_login_maps ... but not works.All mail accounts can send mail to another mail address. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: postfix table notation (cidr) dificulties
    ... ../postfix/files # postmap cidr:mynetworks ... To find out if I have cidr available I issued ... # postmap mynetworks ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: postmap main.cf
    ... > only the .map files do. ... I will not postmap the main.cf file. ... >> Joshua Lewis ... To unsubscribe, ...
    (freebsd-questions)
  • Re: postmap main.cf
    ... > only the .map files do. ... I will not postmap the main.cf file. ... >> Joshua Lewis ... To unsubscribe, ...
    (freebsd-questions)
  • postmap main.cf
    ... I am trying to set up Postfix on 4.10 and when trying to run: ... I get a postmap not found error. ... Joshua Lewis ... To unsubscribe, ...
    (freebsd-questions)