Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 19th September 2010, 23:44
juan_g juan_g is offline
Junior Member
Join Date: Sep 2010
Posts: 19
Thanks: 7
Thanked 1 Time in 1 Post
Default Problem sending mail when not installing amavisd-new

Just a note mentioning an email problem and a solution I've just found, because I think probably other users not installing amavisd-new will be affected by it, maybe without finding the cause.

I'm testing ISPConfig 3 on a VPS. First I tried with Ubuntu, and now with Debian installing everything from scratch, since Debian seems the most supported Linux distribution for ISPConfig. I've followed The Perfect Server - Debian Lenny (Debian 5.0) [ISPConfig 3].

I skipped the step 10 "Install Amavisd-new, SpamAssassin, And Clamav", since I will use ISPConfig to send mail (SMTP), and Google Apps (the free Standard edition for this test site) to receive it. This will save resources on the VPS, letting Google take care of spam and viruses.

However, not installing amavisd-new caused email to be blocked in the mail queue: Monitor -> Logfiles -> Show Mail Queue, with the error "connect to[]:10024: Connection refused".

According to Wikipedia's List of TCP and UDP port numbers, that port (10024) is used for SMTP, to Amavis from Postfix. The solution was in Remove Amavis Content Filter From Postfix Configuration, Requeue All Postfix Email Messages, that is commenting out a few lines of Postfix configuration for Amavis, in the files main.cf and master.cf of the /etc/postfix directory, reloading Postfix, and requeueing blocked messages.

That fixed it, with SMTP working fine now without Amavisd-new, SpamAssassin, and Clamav.

Maybe this solution could be automated in next ISPConfig 3 releases, detecting if amavisd-new is installed or not, and modifying configuration files accordingly.

As a side note, I think it would be helpful to have some brief documentation with examples to configure email clients (Thunderbird, etc.) to work with email accounts created by ISPConfig. I didn't find any mention about this. With a mailbox such as test@example.com, I was trying "test" as user name for the SMTP configuration in Thunderbird. The correct setting, for Thunderbird and SquirrelMail, was "test@example.com" as the user name (this is different for other SMTP servers I'm using). Solving this authentication problem led to be able to solve the other, related to amavisd-new.

Last edited by juan_g; 20th September 2010 at 00:27. Reason: Email client configuration
Reply With Quote
The Following User Says Thank You to juan_g For This Useful Post:
wahid (11th October 2010)
Sponsored Links
Old 20th September 2010, 11:34
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,986
Thanks: 840
Thanked 5,647 Times in 4,457 Posts

Or you could have taken a look into the ispconfig FAQ:

Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following 2 Users Say Thank You to till For This Useful Post:
frontline (22nd September 2010), juan_g (20th September 2010)
Old 20th September 2010, 14:26
juan_g juan_g is offline
Junior Member
Join Date: Sep 2010
Posts: 19
Thanks: 7
Thanked 1 Time in 1 Post

You are right. I'm sorry, I hadn't seen it. The Amavis issue is indeed included in the ISPConfig 3 FAQ as "How to disable spamfilter- and antivirus functions in ISPConfig 3". And it includes additional info, such as another line (receive_override_options = no_address_mappings) that also needs to be commented out when disabling Amavis so that Postfix checks virtual aliases. Thanks!

Another related point I mentioned I'm testing now is how to use ISPConfig to send mail, and Google Apps to receive it (filtering spam, etc.). With this configuration, emails sent between accounts in the same domain weren't being received, naturally because they don't go out of my server to Google. I'm now trying a workaround with a subdomain alias in Google, as described in Emails local delivered with Postfix. But the alias verification is taking time, it seems because of DNS propagation.

Last edited by juan_g; 20th September 2010 at 14:30.
Reply With Quote
Old 21st September 2010, 03:13
juan_g juan_g is offline
Junior Member
Join Date: Sep 2010
Posts: 19
Thanks: 7
Thanked 1 Time in 1 Post
Default It's working...

This configuration is working very well now, including the mentioned workaround, to send mail via ISPConfig and SMTP, and receive it via Google Apps and POP. As said, this prevents loading too much a small VPS with spam filtering, etc.

The alias validation is still in progress, but everything is working already after DNS propagated (the subdomain alias needed its own MX records from Google). Now, for each mail account in Google Apps, there is a forward in ISPConfig to its subdomain alias, to fix the problem with internal mail. In my tests, mail forward worked better than routing for this. I added also an empty mailbox smtp@example.com in ISPConfig, just to configure the SMTP user in mail clients such as Thunderbird. So far, so good.
Reply With Quote
Old 12th October 2010, 00:01
wahid wahid is offline
Junior Member
Join Date: Aug 2010
Location: Hamburg, Germany
Posts: 22
Thanks: 2
Thanked 3 Times in 2 Posts
Thumbs up

Hi juan_g, hello Till,

First of all thank you very much juan_g for the above posted link http://www.question-defense.com/2009...email-messages who saved me to retrieve my mails again and specially this part on master.cf:
#amavis unix - - - - 2 smtp
# -o smtp_data_done_timeout=1200
# -o smtp_send_xforward_command=yes
After an update from the Version to 3.0.3 of ISPConfig, Postfix was rejecting every sent mail. As with you, I couldn't use amavis or clamav on my hosted VPS, since its resources are not really sufficient.

And for your suggested combination with GoogleApps, I find the idea not bad. But I think, the idea behind to "administer" an own mailserver is to feel free from any third-party solution, even if some features are missing. Talking about my case, I'm using Postfix for personal purpose, therewith avoiding Freemails & Co. and learning progressively to administer this robust mailserver. And fortunately till now it's still running spam-free
Reply With Quote


amavis, amavisd-new, email, postfix, smtp

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix Timeout after DATA from some emails treeman Server Operation 13 25th September 2013 13:51
sneaking suspicion my postfix config has gone awry mjbarfoot Installation/Configuration 7 24th August 2010 13:23
Sending emails with custom FROM email address merisor Installation/Configuration 4 8th February 2010 17:27
Why did Squirrelmail, Dovecot/IMAP & Outbound mail break? websissy Technical 4 29th October 2009 23:39
postfix, pop3 uvbnserved Server Operation 22 24th May 2009 22:00

All times are GMT +2. The time now is 00:15.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.