Solved

Postfix sending mail failed

Posted on 2011-03-03
4
1,174 Views
Last Modified: 2012-05-11
Hi

  Im just settingup my CentOS server with postfix mail settings.


Installation & Startingup of postfix was fine.

netstat -anl --tcp | grep 25
tcp        0      0 0.0.0.0:25                  0.0.0.0:*                   LISTEN


iptables/firewall disabled.


NMap on the machine shows the following open ports.
Discovered open port 110/tcp on 322.271.12.231
Discovered open port 443/tcp on 322.271.12.231
Discovered open port 80/tcp on 322.271.12.231



I have attached maillog below. Can anyone understand why i cant send mail ?
/var/log/maillog Has the following error
---------------------------------------


Mar  3 21:45:45 localhost scanmail[22023]: Config unknown entry: Alertmsg_RD3
Mar  3 21:45:45 localhost scanmail[22023]: Config unknown entry: Alertmsg_RR1
Mar  3 21:45:45 localhost scanmail[22023]: Config unknown entry: Alertmsg_RR2
Mar  3 21:45:45 localhost scanmail[22023]: Config unknown entry: Alertmsg_RR3
Mar  3 21:45:45 localhost scanmail[22023]: Config unknown entry: Alertmsg_RRE
Mar  3 21:45:45 localhost scanmail[22023]: Config unknown entry: ScanDBDir
Mar  3 21:45:45 localhost scanmail[22023]: Queue-Id: 9A1DE505FD2
Mar  3 21:45:45 localhost scanmail[22023]: Message-Id:
Mar  3 21:45:45 localhost scanmail[22023]: From:
Mar  3 21:45:45 localhost postfix/qmgr[30387]: 9A1DE505FD2_01: from=<root@example.org>, size=444, nrcpt=1 (queue active)
Mar  3 21:45:45 localhost scanmail[22023]: ScanMail error: exit with 1
Mar  3 21:45:45 localhost postfix/cleanup[22021]: warning: SCANMAIL: Error during execution: 2d
Mar  3 21:45:45 localhost postfix/cleanup[32170]: SCANMAIL: Scanmail Retry Count 1
Mar  3 21:45:45 localhost scanmail[32170]: DB access error: ScanDB connection error.
Mar  3 21:45:45 localhost scanmail[32170]: DB access error: Failed to bind socket: /var/spool/postfix/private/scandb
Mar  3 21:45:45 localhost postfix/local[8027]: 9A1DE505FD2_01: to=<root@localhost.localdomain>, relay=local, delay=0.67, delays=0.65/0/0/0.02, dsn=2.0.0, status=sent (delivered to mailbox)
Mar  3 21:45:45 localhost postfix/qmgr[30387]: 9A1DE505FD2_01: removed
Mar  3 21:45:50 localhost scanmail[32170]: DB access error: ScanDB connection error.
Mar  3 21:45:50 localhost scanmail[32170]: DB access error: Failed to bind socket: /var/spool/postfix/private/scandb


AND
/var/log/messages has no mail related logs

Open in new window

0
Comment
Question by:BToTheAToTheBABA
  • 2
  • 2
4 Comments
 
LVL 19

Expert Comment

by:bevhost
ID: 35031237
Looks like your problem is with scanmail, not postfix
0
 

Author Comment

by:BToTheAToTheBABA
ID: 35031596
Hi,

Is there a way to fix this ?

How should I atleast disable scanmail ?


Thanks for ur reply.
0
 
LVL 19

Accepted Solution

by:
bevhost earned 500 total points
ID: 35031700
do you have a content_filter=bla statement if you main.cf?
How did you enable it in the first place?

postfix does not use scanmail by default.

Is there a scanmail service that needs to be running?

Did you try

# service scanmail start
0
 

Author Closing Comment

by:BToTheAToTheBABA
ID: 35031771
/etc/init.d/scandb start
this Fixed All, Now Mail working.

Thank you.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question