Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1361
  • Last Modified:

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/
0
meinemitternacht
Asked:
meinemitternacht
  • 7
  • 5
1 Solution
 
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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
 
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 7
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now