postfix and newaliases

From: Andreas Hoeschler (ahoesch@smartsoft.de)
Date: Thu Aug 12 2004 - 17:24:42 EDT


Hello,

we are using postfix on Solaris. Normally we edit /etc/mail/aliases and
run newaliases on the command line to modify the aliases database.
However, we would like to modify the file /etc/mail/aliases
programamaticaly now and then run newaliases from a C-program. This
works already for "postmap dbm:/etc/postfix/vmailbox" and so on, but
noit for newaliases.

bash-2.03# ls -l /usr/bin/newaliases
lrwxrwxrwx 1 root root 15 Jun 26 2003
/usr/bin/newaliases -> ../lib/sendmail

I just found out that newaliases actually is a link to
/usr/lib/sendmail. If I run this directly

  /usr/lib/sendmail

I get a sendmail waiting for user input. That's the reason why it does
not work if started by the program. What is needed to tell sendmail to
update the aliases database instead of waiting for mail? Is there a
better wait to triffer the update?

Thanks,

   Andreas
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:16 EDT