Question : FreeBSD sendmail web application

Hello

I'm running web applications on a FreeBSD 6.1 server (which I just upgraded to 6.2). Some of these applications send mail to local users. For 2 weeks now, that doesn't work anymore. That was before the upgrade and the upgrade doesn't help. I can't remember I changed any setting.

I'm getting 2 errors. One that it can't create a spool file. Which seems logical since sendmail doesn't use suid. However I don't get that error on another FreeBSD server eventhough the permissions are the same. And it tells me that the user [email protected] ("ourdomain.com" isn't the real domain name) is unknown. But if I send mail from another machine to that same address, it works. The email orders@... point to a different user internally. And again, it used to work on that same machine and it still works on the other FreeBSD server. Both FreeBSD servers use the mimedefang milter + spamassassin + clamav.

If I change the permission on the spool dir, error 1 doesn't occur but error 2 still does (and I get a warning that this is not safe).

interch is the Perl based Interchange shopping cart
phpads is a php based ad program

Here is what I found in the logs:

Jan 19 14:59:07 server sendmail[33599]: l0JMx7M1033599: SYSERR(interch): collect: Cannot write ./dfl0JMx7M1033599 (bfcommit, uid=95, gid=25): Permission denied
Jan 19 14:59:07 server sendmail[33599]: l0JMx7M1033599: from=interch, size=1975, class=0, nrcpts=1, relay=interch@localhost
Jan 19 14:59:07 server sendmail[33599]: l0JMx7M1033599: SYSERR(interch): queueup: cannot create queue file ./qfl0JMx7M1033599, euid=95, fd=-1, fp=0x0: Permission denied
Jan 19 14:59:07 server sendmail[33600]: l0JMx7lT033600: [email protected], delay=00:00:00, mailer=local, pri=0, dsn=5.1.1, stat=User unknown
Jan 19 14:59:07 server sendmail[33600]: l0JMx7lT033600: SYSERR(interch): collect: Cannot write ./dfl0JMx7lT033600 (bfcommit, uid=95, gid=25): Permission denied
Jan 19 14:59:07 server sendmail[33600]: l0JMx7lT033600: from=interch, size=3809, class=0, nrcpts=1, relay=interch@localhost
Jan 19 14:59:07 server sendmail[33600]: l0JMx7lT033600: l0JMx7lU033600: DSN: collect: Cannot write ./dfl0JMx7lT033600 (bfcommit, uid=95, gid=25): Permission denied
Jan 19 14:59:07 server sendmail[33600]: l0JMx7lU033600: SYSERR(interch): queueup: cannot create queue file ./qfl0JMx7lU033600, euid=95, fd=-1, fp=0x0: Permission denied
...
Jan 19 15:00:01 server sendmail[33632]: l0JN00g7033632: SYSERR(phpads): collect: Cannot write ./dfl0JN00g7033632 (bfcommit, uid=1020, gid=25): Permission denied

 

Answer : FreeBSD sendmail web application

0) Which sendmail version do you use?
1) Do you have both sendmail.cf and submit.cf in /etc/mail/ directory?
[for sendmail-8.12+ with defaul no set root uid installation]
2) Compare step by step permissions in your installation with permissions described at
http://www.sendmail.org/security/secure-install.php
[for sendmail-8.12+ with defaul no set root uid installation]
Random Solutions  
 
programming4us programming4us