Summary: postfix and newaliases

From: Andreas Hoeschler (ahoesch@smartsoft.de)
Date: Fri Aug 13 2004 - 12:38:45 EDT


Dear managers,

thanks for the many responses. The solution is to use one of the
following:

        sendmail -bi
        postalias /etc/mail/aliases

or put the /usr/bin/newaliases into a script and call this from the
C-Programm.

Regards,

   Andreas

> 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
_______________________________________________
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:17 EDT