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

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/
meinemitternachtAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

darrickhartmanCommented:
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
meinemitternachtAuthor Commented:
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
darrickhartmanCommented:
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
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

meinemitternachtAuthor Commented:
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
darrickhartmanCommented:
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
meinemitternachtAuthor Commented:
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
darrickhartmanCommented:
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
meinemitternachtAuthor Commented:
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
darrickhartmanCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
meinemitternachtAuthor Commented:
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
pedroblCommented:

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
meinemitternachtAuthor Commented:
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
meinemitternachtAuthor Commented:
Thanks for the help.  I eventually re-installed Postfix without Amavis, but this discussion helped me figure out what was going on.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.