Solved

Postfix sending mail failed

Posted on 2011-03-03
4
1,171 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mobaxterm not able to change directory 28 98
High Available Storage based on linux 6 67
issue in getting eth0 IP in oracale virtual box Linux VM 4 41
CentOS 7 Installation 7 58
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Fine Tune your automatic Updates for Ubuntu / Debian
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

914 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now