Summary: postfix and newaliases
2007-12-25 3:50:00
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
> _______________________________________________
> codeprof mailing list
> codeprof at codeprof.com
> http://www.codeprof.com/execute/ask/?codeinfoid=32230
Comments
Got something to say?
You must be logged in to post a comment.

