• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1333
  • Last Modified:

postfix warning and write permission

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



0
D_wathi
Asked:
D_wathi
  • 3
  • 2
1 Solution
 
Maciej SsysadminCommented:
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.
0
 
D_wathiAuthor 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.





0
 
D_wathiAuthor 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
0
 
Maciej SsysadminCommented:
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
0
 
D_wathiAuthor Commented:
followed as per your instruction , problem got solved , thanks
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now