Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 1st November 2006, 13:00
rdeussen rdeussen is offline
Junior Member
 
Join Date: Nov 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default postfix, backup mx host + spam and virus scanning enabled

Hi all,

In ISPConfig we have the option to specify a external mailserver. For this "external mailserver" domain, ISPconfig is not relaying any e-mail by default.

I've edited postfix:

relay_domains = hash:/etc/postfix/relay_domains
relay_recipient_maps = hash:/etc/postfix/relay_recipients

and put the users there who are known at the primary mailserver in the relay_recipients file. This way e-mail gets relayed at the backup mx, and delivered at the primary host as soon as this host becomes available.

But...

there is no spam and e-mail scanning done this way. Does somebody know where to look?

Thnx
Ralph
Reply With Quote
Sponsored Links
  #2  
Old 2nd November 2006, 10:29
rdeussen rdeussen is offline
Junior Member
 
Join Date: Nov 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default added info

Ofcourse i also have:

transport_maps = hash:/etc/postfix/transport


so postfix knows the primary server...instead of dns lookup...
Reply With Quote
  #3  
Old 2nd November 2006, 14:41
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Quote:
Originally Posted by rdeussen
there is no spam and e-mail scanning done this way.
Yes, because this is invoked by procmail, but it isn't called if the emails don't arrive at the users' homedirs. You must set up Postfix to use amavisd instead which then passes the emails back to Postfix after scanning.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 2nd November 2006, 15:43
rdeussen rdeussen is offline
Junior Member
 
Join Date: Nov 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default ispconfig, postfix, amavisd

Is there a howto regarding ispconfig, postfix and amavisd?

And is there any interaction between the ispconfig web interface and this postfix / amavisd solution?

I'm also thinking about performance issue, is every e-mail send or received by the system scanned by amavisd? Or can i limit this to the backup domains?
Reply With Quote
  #5  
Old 3rd November 2006, 14:57
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Quote:
Originally Posted by rdeussen
Is there a howto regarding ispconfig, postfix and amavisd?
These howtos are about Postfix and amavisd_new: http://flakshack.com/anti-spam/wiki/index.php
http://www200.pair.com/mecham/spam/
http://gentoo-wiki.com/HOWTO_Spam_Fi...ostfix,_Amavis

Basically you must install your distribution's amavisd_new package, and then you configure Postfix and amavisd_new.

Quote:
Originally Posted by rdeussen
And is there any interaction between the ispconfig web interface and this postfix / amavisd solution?
No.

Quote:
Originally Posted by rdeussen
I'm also thinking about performance issue, is every e-mail send or received by the system scanned by amavisd? Or can i limit this to the backup domains?
You can create whitelists with amavisd_new.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 5th November 2006, 12:25
rdeussen rdeussen is offline
Junior Member
 
Join Date: Nov 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default todo ...

I've configured;

postfix main.cf, master.cf, transport, relay_domains, relay_recipients.

amavisd is configured using the 50-user file (debian..)

But now it seems every e-mail is scanned with amavis...and again after the procmail invokes? Perhaps this is unneeded load, but for the meantime it looks ok. I'm trying out the whitelist stuff to see if i can limit this to the back domains. I'll keep you updated.

It would be awesome if i could use a tool like mailwatch (sourceforge) Anybody any experience with this?
Reply With Quote
  #7  
Old 6th November 2006, 14:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
 
Default

Quote:
Originally Posted by rdeussen
But now it seems every e-mail is scanned with amavis...and again after the procmail invokes?
Then you did something wrong. The mail must go to Postfix, then to amavisd, which delviers it back to Postfix after scanning. Have a look here: http://www.howtoforge.com/virtual_po...ota_courier_p3
But please don't follow the whole tutorial as it configures Postfix for virtual mailboxes which is not compatible with ISPConfig!
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

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
getting mailgraph spam and virus rayit HOWTO-Related Questions 31 10th August 2006 17:52


All times are GMT +2. The time now is 02:46.


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