This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
sendmail [2011/05/13 00:29] k2patel |
sendmail [2011/11/28 18:32] k2patel [Rebuild aliases] |
||
---|---|---|---|
Line 10: | Line 10: | ||
when you modify /etc/mail/aliases.\\ | when you modify /etc/mail/aliases.\\ | ||
Possibly you see following message. \\ | Possibly you see following message. \\ | ||
- | //alias database /etc/mail/aliases.db out of date// \\ | + | //**alias database /etc/mail/aliases.db out of date**// \\ |
Simply run following and will fix it. | Simply run following and will fix it. | ||
Line 16: | Line 17: | ||
newaliases | newaliases | ||
</code> | </code> | ||
+ | OR\\ | ||
+ | run 'make' in /etc/mail to update all databases\\ | ||
+ | OR | ||
+ | <code bash> | ||
+ | sendmail -bi | ||
+ | </code> | ||
+ | |||
+ | ==== Error Code 126 ==== | ||
+ | Following messages you see in log and mail. | ||
+ | * DSN: unknown mailer error 126 | ||
+ | * stat=unknown mailer error 126 | ||
+ | * runscript.sh: Permission denied | ||
+ | * 554 5.3.0 unknown mailer error 126 | ||
+ | |||
+ | It is because script you call to catch email OR execute when received has permission issue. \\ | ||
+ | Simply set permission on that script to "Sendmail Default User" could be 'daemon' or 'mailnull'. \\ | ||
+ | the names i have used those are i came across till now. so chances are there you see something diff. \\ | ||
+ | |||
+ | Whole path need to be executable by that user. | ||
==== How to change outbound IP ==== | ==== How to change outbound IP ==== |