We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

postfix warning and write permission

Medium Priority
1,530 Views
Last Modified: 2013-11-30
Dear Sir/Madam:

I am having rhel 5 mail server with POSTFIX , MailScanner ,spamassassin and razor and bayes plugin all was working fine recently i uninstalled the postfix rpm and installed the postfix using source code so that to enable the mysql support for the postfix but this did not work properly thought let me do this on some other day and removed the postfix source code by make clean and deleted the postfix source code directory installed the postfix rpm , and gain uninstalled the same and then installed the postfix rpm but now it is working not iam getting following log from the /var/log/maillog , following posted for your reference , please help me to fix this:
/var/log/maillog-------------------
 parrot postfix/postfix-script: warning: /usr/lib/sendmail and /usr/sbin/sendmail differ
Feb 11 19:01:53 parrot postfix/postfix-script: warning: Replace one by a symbolic link to the other
Feb 11 19:01:53 parrot postfix/postfix-script: starting the Postfix mail system
Feb 11 19:01:53 parrot postfix/master[5486]: daemon started -- version 2.3.3, configuration /etc/postfix
Feb 11 19:01:56 parrot MailScanner[5514]: MailScanner E-Mail Virus Scanner version 4.74.16 starting...
Feb 11 19:01:56 parrot MailScanner[5514]: Read 850 hostnames from the phishing whitelist
Feb 11 19:01:56 parrot MailScanner[5514]: Read 4563 hostnames from the phishing blacklist
Feb 11 19:01:56 parrot MailScanner[5514]: User's home directory /var/spool/postfix is not writable
Feb 11 19:01:56 parrot MailScanner[5514]: You need to set the "SpamAssassin User State Dir" to a directory that the "Run As User" can write to
Feb 11 19:01:56 parrot MailScanner[5514]: Using SpamAssassin results cache
Feb 11 19:01:56 parrot MailScanner[5514]: Connected to SpamAssassin cache database
Feb 11 19:01:57 parrot MailScanner[5514]: Expired 2 records from the SpamAssassin cache
Feb 11 19:01:57 parrot MailScanner[5514]: Enabling SpamAssassin auto-whitelist functionality...
Feb 11 19:01:57 parrot MailScanner[5514]: Using locktype = flock
Feb 11 19:02:01 parrot MailScanner[5528]: MailScanner E-Mail Virus Scanner version 4.74.16 starting...
Feb 11 19:02:01 parrot MailScanner[5528]: Read 850 hostnames from the phishing whitelist
Feb 11 19:02:01 parrot MailScanner[5528]: Read 4563 hostnames from the phishing blacklist
Feb 11 19:02:01 parrot MailScanner[5528]: User's home directory /var/spool/postfix is not writable
Feb 11 19:02:01 parrot MailScanner[5528]: You need to set the "SpamAssassin User State Dir" to a directory that the "Run As User" can write to



Comment
Watch Question

Maciej Ssysadmin
CERTIFIED EXPERT

Commented:
All you need to know is in your post :)

You have there information:
> You need to set the "SpamAssassin User State Dir" to a directory that the "Run As User" can write to

Set this directory (SpamAssassin User State Dir) to directory to which user mentioned in "Run As User" has write permissions.

Author

Commented:
Sir, thanks for the reply after setting the following in the mailscanner.conf
SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin
following error log stopped from the var/log/maillog:
User's home directory /var/spool/postfix is not writable
Feb 11 19:01:56 parrot MailScanner[5514]: You need to set the "SpamAssassin User State Dir" to a directory that the "Run As User" can write to
---------------------------------
But still  iam getting error log when ever i restart the MailScanner , posted below for your reference .
postfix/postfix-script: warning: /usr/lib/sendmail and /usr/sbin/sendmail differ
Feb 11 19:12:37 parrot postfix/postfix-script: warning: Replace one by a symbolic link to the other
Feb 11 19:12:37 parrot postfix/postfix-script: starting the Postfix mail system
Feb 11 19:12:37 parrot postfix/master[6726]: daemon started -- version 2.3.3, configuration /etc/postfix
Feb 11 19:12:39 parrot MailScanner[6750]: MailScanner E-Mail Virus Scanner version 4.74.16 starting...
Feb 11 19:12:39 parrot MailScanner[6750]: Read 850 hostnames from the phishing whitelist
Feb 11 19:12:39 parrot MailScanner[6750]: Read 4567 hostnames from the phishing blacklist
Feb 11 19:12:40 parrot MailScanner[6750]: Using SpamAssassin results cache
Feb 11 19:12:40 parrot MailScanner[6750]: Connected to SpamAssassin cache database
Feb 11 19:12:40 parrot MailScanner[6750]: Expired 1 records from the SpamAssassin cache
Feb 11 19:12:40 parrot MailScanner[6750]: Enabling SpamAssassin auto-whitelist functionality...
Feb 11 19:12:40 parrot MailScanner[6750]: Using locktype = flock
----------------------------------------------
Please help me to fix this, thanks in advance.





Author

Commented:
Sir, now after setting the path one error is cleared  still one is existing the same is posted below for your reference , this is a warning message that appears when mailscanner is restarted , please help me on this.
-------------------/var/log/maillog
postfix/postfix-script: warning: /usr/lib/sendmail and /usr/sbin/sendmail differ
Feb 11 19:12:37 parrot postfix/postfix-script: warning: Replace one by a symbolic link to the other
Feb 11 19:12:37 parrot postfix/postfix-script: starting the Postfix mail system
Feb 11 19:12:37 parrot postfix/master[6726]: daemon started -- version 2.3.3, configuration /etc/postfix
Feb 11 19:12:39 parrot MailScanner[6750]: MailScanner E-Mail Virus Scanner version 4.74.16 starting...
Feb 11 19:12:39 parrot MailScanner[6750]: Read 850 hostnames from the phishing whitelist
Feb 11 19:12:39 parrot MailScanner[6750]: Read 4567 hostnames from the phishing blacklist
Feb 11 19:12:40 parrot MailScanner[6750]: Using SpamAssassin results cache
Feb 11 19:12:40 parrot MailScanner[6750]: Connected to SpamAssassin cache database
Feb 11 19:12:40 parrot MailScanner[6750]: Expired 1 records from the SpamAssassin cache
Feb 11 19:12:40 parrot MailScanner[6750]: Enabling SpamAssassin auto-whitelist functionality...
Feb 11 19:12:40 parrot MailScanner[6750]: Using locktype = flock
sysadmin
CERTIFIED EXPERT
Commented:
Make sure, that /usr/sbin/sendmail is binary file, not symbolic link (check this with ls -l /usr/sbin/sendmail).
If it is binary, then do:
mv /usr/lib/sendmail /usr/lib/sendmail.OFF
ln -s /usr/sbin/sendmail /usr/lib/sendmail

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
followed as per your instruction , problem got solved , thanks
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.