
26th January 2007, 18:08
|
|
Junior Member
|
|
Join Date: Sep 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Mail relay "store and forward" configuration, reccomended solution?
Hi again. Firstly, thanks for being so helpful with my last problem. Once again I have read every post that relates to this and can't find a straight answer
We have finally migrated all of our sites to ISPConfig now, yay!
One of our customers wants to configure his mx records as so:
Code:
MX 10 [ISPCONFIG]
MX 20 [IP OF ONSITE ADSL LINK]
Then configure ispconfig to (viruscheck &) relay all mail to the [IP OF ONSITE ADSL LINK]
What would the best way to do this be? I have read about procmail recipies, postfix relay configs, and things related to ISPConfig settings.
The more I read, the more I get confused, so any pointers would be hugely appreciated.
W.
|

27th January 2007, 15:28
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
I'd leave out the
Code:
MX 20 [IP OF ONSITE ADSL LINK]
part, then configure amavisd for virus and spam scanning on the ISPConfig server and use Postfix transports to deliver the mails to the second server.
|

28th January 2007, 03:07
|
|
Junior Member
|
|
Join Date: Sep 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Cool, thanks again Falko.
For the benefit of others & for clarification, you are suggesting adding the following to
/etc/postfix/transport
Code:
example1.com [IP OF ONSITE ADSL LINK]
source
Last edited by woleium; 29th January 2007 at 19:32.
|

29th January 2007, 13:06
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
Yes, right.
|

5th February 2007, 17:19
|
|
Junior Member
|
|
Join Date: Sep 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Full Instructions
possibly add these to the faq?
1. From inside ISPConfig make sure that email is configured to external mailserver for the domain, and also any subdomains (subdomains tab -> other)
2. from shell:
Code:
echo "relay_domains = /etc/postfix/relay" >> /etc/postfix/main.cf
echo "[DOMAIN NAME HERE]" >> /etc/postfix/relay
echo "[DOMAIN NAME HERE] smtp:[IP ADDRESS TO FORWARD TO] >> /etc/postfix/transport
postmap /etc/postfix/transport
postfix reload
to add additional domains:
Code:
echo "[DOMAIN NAME HERE]" >> /etc/postfix/relay
echo "[DOMAIN NAME HERE] smtp:[IP ADDRESS TO FORWARD TO] >> /etc/postfix/transport
postmap /etc/postfix/transport
postfix reload
Hope this helps someone, it took me a couple of days to figure it out.
Last edited by woleium; 5th February 2007 at 17:22.
|

20th February 2007, 01:10
|
|
Junior Member
|
|
Join Date: Feb 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Just what i needed ty
Last edited by Madlew2007; 20th February 2007 at 02:18.
|

20th February 2007, 09:58
|
|
Junior Member
|
|
Join Date: Feb 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I have this setup and postfix relays the emails fine to my exchange server but the mails dont seem to be getting scanned through spamassassin.
Do i need to teach spamassassin? e.g setup a local mailbox and fill with spam/ham?
The domain is flagged for av and spam scanning in ISPConfig.
What can I check?
|

20th February 2007, 10:12
|
|
Senior Member
|
|
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 873
Thanks: 1
Thanked 14 Times in 13 Posts
|
|
mailscanning in ISPConfig is done with procmail, which is called as the last step in Postfix. Your relaying is done before procmail is called, thus ISPConfig can never scan the emails on the primary MTA. You would need a totally different Postfix setup if you want to scan the mails before relaying. Which would break ISPConfig.
|

21st February 2007, 20:56
|
|
Junior Member
|
|
Join Date: Feb 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ok, thank you for your reply.
I think im gonna try setting up Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAssassin, ClamAV) as I have read the scanning/relaying threads which point to this.
Hope this does what I need.
|

3rd April 2007, 19:30
|
|
Junior Member
|
|
Join Date: Feb 2006
Posts: 23
Thanks: 3
Thanked 0 Times in 0 Posts
|
|
Quote:
|
Originally Posted by martinfst
mailscanning in ISPConfig is done with procmail, which is called as the last step in Postfix. Your relaying is done before procmail is called, thus ISPConfig can never scan the emails on the primary MTA. You would need a totally different Postfix setup if you want to scan the mails before relaying. Which would break ISPConfig.
|
Is there any possibility to relay mail after scanning (e.g. with procmail recipes)?
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 09:26.
|
Recent comments
1 day 54 min ago
1 day 6 hours ago
1 day 6 hours ago
1 day 6 hours ago
1 day 7 hours ago
1 day 9 hours ago
1 day 12 hours ago
1 day 12 hours ago
1 day 12 hours ago
1 day 13 hours ago