Solved

How do I either fix or remove Amavis from my Debian Postfix configuration?

Posted on 2009-04-02
13
1,347 Views
Last Modified: 2013-12-06
Hello!

I have a Debian 5 "Lenny" server with Postfix, Amavis, ClamAV, SpamAssassin, and Courier-IMAP.  It has been giving me trouble from the start, but it works most of the time, with the exception of randomly queuing messages.  I will attach my postfix configuration files, and the mail.log.  I use MySQL for virtual mailbox mapping.  I'm in Africa using a VSAT, but I don't have power, so it will be 12 hours before I can respond.  Thanks in advance.

Error:
Apr  2 18:38:06 meinkleinewelt postfix/error[16124]: 55BC9FDAB4: to=<cw@wfto.cc>, relay=none, delay=196835, delays=196833/2.1/0/0.07, dsn=4.3.0, status=deferred (mail transport unavailable)

That error repeats for every mail message that didn't make it into a local user's mailbox, or out to someone else's email around the world.

I would actually prefer removing Amavis and ClamAV, as they eat up most of my memory.

All of my config files (copied to a webserver directory, it would take me forever to attach and upload):  http://www.wfto.cc/mailsrvconfig/
0
Comment
Question by:meinemitternacht
  • 7
  • 5
13 Comments
 
LVL 7

Expert Comment

by:darrickhartman
ID: 24056347
You already are bypassing Amavis by commenting out that line in your main.cf file.

#content_filter = amavis:[127.0.0.1]:10024

A 'deferred' status indicates that the Postfix server was temporarily unable to reach the destination.  When you are connected to the internet, you could issue a postqueue -f to flush the messages.  That will attempt to redeliver the messages.

Can't read the log files and the other files in that directory (which is a good thing since there are mysql passwords in some of those files).  Be careful about what you make publicly available.

0
 

Author Comment

by:meinemitternacht
ID: 24059543
Ah, but I am always connected to the internet.  And it's having problems delivering to local accounts.  It has the mail messages in the queue but it wont put them in their respective boxes.

Yes, I was in a hurry last night and didn't really think before I copied :)  I'll go through it now and place the correct permissions so you can review them.
0
 
LVL 7

Expert Comment

by:darrickhartman
ID: 24061977
I can't reach your website so I can't look deeper.  When you get the website up later, send a message and I'll try to take a look.
0
 

Author Comment

by:meinemitternacht
ID: 24062037
I am actually using a VPS (Spry's VPSlink) for my hosting, so I chickened out and re-imaged my server.  I'm working on a few technical issues related to the re-provisioning and then I'll be able to start over.  I was using this guide to set up my email as I had it before:  http://howtoforge.com/virtual-users-domains-postfix-courier-mysql-squirrelmail-debian-lenny .  The email worked flawlessly, with the exception of the above problem.  So if you take a look at that guide on page 3, it walks you through installing Amavis and such.  Can I just skip that?  I really don't have the need for Virus Scanning / SpamAssassin at the moment.
0
 
LVL 7

Expert Comment

by:darrickhartman
ID: 24062316
As long as you omit the one line:

#content_filter = amavis:[127.0.0.1]:10024

your messages will not be sent through amavisd.  You can safely skip the amavisd/clamav/spamassassin install if you don't want to filter your email.

0
 

Author Comment

by:meinemitternacht
ID: 24062347
So the email will be sent to courier?  Or does postfix actually write the emails to the vmail folders?  I really don't understand what each program is doing.

This is what I think in my mind:

Postfix -  Acts as the postmaster, distributes mail
Courier - Acts as the mailman for IMAP / POP / etc.
Amavis - Kills your postfix installations
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 7

Expert Comment

by:darrickhartman
ID: 24062445
Postfix can deliver directly to Maildir (which is what you'll want with courier-imap).  The howto you posted does set this up.  

Other than the last part "Amavis killing your postfix installation" you are correct.  Postfix handles the smtp transactions and is the MTA (mail transport agent).  Courier is your IMAP and POP3 server.  Courier acts as the intermediary between your email client and the Maildir store (either through IMAP or POP3).

It's strongly recommended to configure Postfix and get that working first before adding Amavisd into the mix.

0
 

Author Comment

by:meinemitternacht
ID: 24062461
So, in the future, after I get everything set up I can just look around the Amavis documentation and figure out how to add that functionality to Postfix?
0
 
LVL 7

Accepted Solution

by:
darrickhartman earned 500 total points
ID: 24062482
Yes, you should be able to add the filtering in later.  Then you can bypass the filtering by adding a # in front of the content_filter line in main.cf
0
 

Author Comment

by:meinemitternacht
ID: 24062502
Before I decided to nuke the install, I got this message in the mail.log:

delivery temporarily suspended: lost connection with 127.0.0.1[127.0.0.1] while receiving the initial server greeting

That was with everything in every config file exactly like the tutorial stated, and it was working correctly 3 weeks ago.  *shrug*
0
 

Expert Comment

by:pedrobl
ID: 24146736

Could it be a problem with the transport? The last part of the error message says "(mail transport unavailable)". So postfix doesn't know which transport to use for the domain "wfto.cc".

Do you have a record with your "virtual" domain "wfto.cc" in the "domains" table?

Hope it helps,

Pedro.
0
 

Author Comment

by:meinemitternacht
ID: 24196601
I did at the time, but I'm closing this question now as sorta solved.  I removed everything postfix-related and re-installed (without Amavis and ClamAV).  Thanks for the input, it helped me go in the right direction.
0
 

Author Closing Comment

by:meinemitternacht
ID: 31565951
Thanks for the help.  I eventually re-installed Postfix without Amavis, but this discussion helped me figure out what was going on.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Microsoft has released various new features which are capable of handling various tasks. One of these tasks is ‘Migration from pop3 to Exchange Server’. Pop3 data stores various data along mailboxes like contacts, tasks, etc. So, it becomes the need…
In this video we show how to create a Distribution Group in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >>…
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…

743 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