Tracy Phillips

Archive for the ‘sendmail’ tag

sendmail: auxpropfunc error no mechanism available

leave a comment

Have you been getting the following error in your log files?

Jan  7 14:10:30 [server] sendmail[2822]: sql_select option missing
Jan  7 14:10:30 [server] sendmail[2822]: auxpropfunc error no mechanism available
Jan  7 14:10:30 [server] sendmail: sendmail startup succeeded
Jan  7 14:10:30 [server] sendmail: sm-client startup succeeded

The reason is that if the plug-in is installed, SASL tries to load and initialize all plug-ins that it finds. When the SQL plug-in is initialized, it needs a valid sql_engine (which defaults to ‘mysql’) and sql_select options.

So what is the solution? If you do not need the cyrus-sasl-sql rpm, then you can remove it like so:

[server][root][~]# rpm -e cyrus-sasl-sql

You could also do the following instead:

[server][root][~]# rm /usr/lib/sasl2/libsql.*

Written by Tracy

January 20th, 2009 at 10:14 am

Posted in Linux

Tagged with

Sendmail X-Authentication-Warning

leave a comment

Have you ever looked at your email headers to see that sendmail was attaching an X-Authentication-Warning warning because Apache is the sender of an email as a different user other than the system user “apache”?

This is what the email header would look like:

X-Authentication-Warning: mail.domain.com: apache set sender to sales@domain.com using -f

To keep sendmail from adding the warning, you need to setup your apache user as a trusted sender. In my case my apache user is “apache”. Sometimes the user might be called httpd.

You will need to add your apache user to /etc/mail/trusted-users

[server][root][~]# vi /etc/mail/trusted-users

Your sendmail.cf should be ready for that:

[server][root][~]# grep trusted /etc/mail/sendmail.cf
Ft/etc/mail/trusted-users

Otherwise force the trusted user with a line like:

Tusername

If you build your sendmail.cf from sendmail.mc, use:

FEATURE(use_ct_file)dnl

Written by Tracy

May 21st, 2007 at 12:07 pm

Posted in FreeBSD, Linux

Tagged with , ,