Solved

Postfix sending mail failed

Posted on 2011-03-03
4
1,161 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
Comment Utility
Looks like your problem is with scanmail, not postfix
0
 

Author Comment

by:BToTheAToTheBABA
Comment Utility
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
Comment Utility
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
Comment Utility
/etc/init.d/scandb start
this Fixed All, Now Mail working.

Thank you.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Event 9327, MSExchangeSA 1 33
Notice: Undefined variable 5 54
Linux operating system 12 64
linux crontab output 3 36
Automapping, a wonderful feature with Exchange 2010 (SP2 onwards I believe), allows additional/Shared mailboxes that a user has access to be automatically mapped on Outlook client, simplifying the process by adding them while Outlook launches. Ho…
New-MailboxSearch Powershell Command and step by step approach to Search and Extract Emails form Exchange 2013 Journaling server.
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.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

744 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

17 Experts available now in Live!

Get 1:1 Help Now