Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th October 2005, 16:40
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Question Filtering emails using Spamassassin and Clamav for Exchange 2000 Server

I need help to configure a linux distro, preferrably Mandriva, to filter emails and then forward them to my Exchange 2000 Server. Any other distro's would be fine also. I've heard about Spamassassin and Clamav and thought that I should use them. Any suggestions?
Reply With Quote
Sponsored Links
  #2  
Old 5th October 2005, 17:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Quote:
Originally Posted by Rocky
I need help to configure a linux distro, preferrably Mandriva, to filter emails and then forward them to my Exchange 2000 Server. Any other distro's would be fine also. I've heard about Spamassassin and Clamav and thought that I should use them. Any suggestions?
I've just finished writing a tutorial that could be good for you:
http://www.howtoforge.com/virtual_po..._quota_courier

But it's based on Debian, not Mandriva. But should not be difficult to switch over to Debian.
__________________
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
  #3  
Old 5th October 2005, 19:32
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

I'll give your tutorial a try.
Reply With Quote
  #4  
Old 6th October 2005, 17:12
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Ok, so I've followed your tutorial thoroughly and had success. Now if I wanted to catch all mails going to domainA, and send them to smtp.domainA.com, what scenerio would i have to use? Would it be a transport: domainA.com --> smtp:mail.domainA.tld?

Also, If I wanted to catch emails going to domainB, for specific users, and send them to domainA, would I have to use the forwardings example below?
user@domainB.com --> user@domainA.tld. You have .tld in your examples, do I have to create the destination as user@domainA.tld? I'm a bit confuse as to why .com is not used.
Reply With Quote
  #5  
Old 6th October 2005, 18:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Quote:
Originally Posted by Rocky
Ok, so I've followed your tutorial thoroughly and had success. Now if I wanted to catch all mails going to domainA, and send them to smtp.domainA.com, what scenerio would i have to use? Would it be a transport: domainA.com --> smtp:mail.domainA.tld?
Yes!

Quote:
Originally Posted by Rocky
Also, If I wanted to catch emails going to domainB, for specific users, and send them to domainA, would I have to use the forwardings example below?
user@domainB.com --> user@domainA.tld.
Yes.
Quote:
Originally Posted by Rocky
You have .tld in your examples, do I have to create the destination as user@domainA.tld? I'm a bit confuse as to why .com is not used.
.tld is just a placeholder for .com, .net, .org, .de, ...
__________________
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 6th October 2005, 18:57
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Well that explains a lot and thank you very much for all of your tutorials. I'm just waiting for DNS entries to update in order to check my new mail system and I wll post the results.
Reply With Quote
  #7  
Old 6th October 2005, 20:51
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs

I think I have an issue with my setup. I have a domain, called mcrirents.com, and created the host and mx records for DNS. I've logged into phpmyadmin and created the domain --> mcrirents.com, user --> malli@mcrirents.com and forwardings --> malli@mcirents.com to malli@computerrents.com.
When I send out a mail from comcast, gmail or hotmail, it seems like its going through, but I dont receive the mail at my computerrens accound. I've checked all the setting in phpmyadmin and everything looks correct.
Am I doing something wrong.
Also, should I be able to pop3 into malli@mcrirents.com because when I try to do it, it tells me that the password is incorrect.
Reply With Quote
The Following User Says Thank You to Rocky For This Useful Post:
AbannyvabVask (22nd December 2013)
  #8  
Old 7th October 2005, 03:32
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Quote:
Originally Posted by Rocky
I think I have an issue with my setup. I have a domain, called mcrirents.com, and created the host and mx records for DNS. I've logged into phpmyadmin and created the domain --> mcrirents.com, user --> malli@mcrirents.com and forwardings --> malli@mcirents.com to malli@computerrents.com.
When I send out a mail from comcast, gmail or hotmail, it seems like its going through, but I dont receive the mail at my computerrens accound. I've checked all the setting in phpmyadmin and everything looks correct.
Am I doing something wrong.
Also, should I be able to pop3 into malli@mcrirents.com because when I try to do it, it tells me that the password is incorrect.
Can you have a look at the mail log /var/log/mail.log? What's in there when you send a mail to malli@computerrents.com?

Does POP3 tell you that your password is incorrect, or does it tell you that the Maildir for that email address doesn't exist?
__________________
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
The Following User Says Thank You to falko For This Useful Post:
AbannyvabVask (18th December 2013)
  #9  
Old 7th October 2005, 15:29
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Below is what my mail.log file looks like as of Oct 7, 05 at 8:37am


Oct 7 08:37:10 mail postfix/smtpd[4721]: connect from localhost.localdomain[127.0.0.1]
Oct 7 08:42:17 mail postfix/smtpd[4721]: timeout after EHLO from localhost.localdomain[127.0.0.1]
Oct 7 08:42:17 mail postfix/smtpd[4721]: disconnect from localhost.localdomain[127.0.0.1]
Oct 7 08:44:52 mail postfix/smtpd[4732]: connect from localhost.localdomain[127.0.0.1]
Oct 7 08:45:55 mail postfix/smtpd[4732]: D4FAFD033F: client=localhost.localdomain[127.0.0.1]
Oct 7 08:46:53 mail postfix/cleanup[4739]: D4FAFD033F: message-id=<20051007134529.D4FAFD033F@mail.mcrirents.com>
Oct 7 08:46:53 mail postfix/qmgr[3444]: D4FAFD033F: from=<malli@mcrirents.com>, size=385, nrcpt=1 (queue active)
Oct 7 08:46:53 mail postfix/smtp[4740]: fatal: valid hostname or network address required in SMTP server description: {127.0.
0.1}:10024
Oct 7 08:46:54 mail postfix/qmgr[3444]: warning: premature end-of-input on private/amavis socket while reading input attribut
e name
Oct 7 08:46:54 mail postfix/qmgr[3444]: warning: private/amavis socket: malformed response
Oct 7 08:46:54 mail postfix/qmgr[3444]: warning: transport amavis failure -- see a previous warning/fatal/panic logfile recor
d for the problem description
Oct 7 08:46:54 mail postfix/master[3442]: warning: process /usr/lib/postfix/smtp pid 4740 exit status 1
Oct 7 08:46:54 mail postfix/master[3442]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Oct 7 08:47:04 mail postfix/smtpd[4732]: disconnect from localhost.localdomain[127.0.0.1]
Oct 7 08:48:01 mail postfix/pickup[4664]: 3DECCD0341: uid=0 from=<root>
Oct 7 08:48:01 mail postfix/cleanup[4739]: 3DECCD0341: message-id=<20051007134800.3DECCD0341@mail.mcrirents.com>
Oct 7 08:48:01 mail postfix/qmgr[3444]: 3DECCD0341: from=<root@mail.mcrirents.com>, size=581, nrcpt=7 (queue active)
Oct 7 08:48:01 mail postfix/smtp[4774]: fatal: valid hostname or network address required in SMTP server description: {127.0.
0.1}:10024
Oct 7 08:48:02 mail postfix/qmgr[3444]: warning: premature end-of-input on private/amavis socket while reading input attribut
e name
Oct 7 08:48:02 mail postfix/qmgr[3444]: warning: private/amavis socket: malformed response
Oct 7 08:48:02 mail postfix/qmgr[3444]: warning: transport amavis failure -- see a previous warning/fatal/panic logfile recor
d for the problem description
Oct 7 08:48:02 mail postfix/master[3442]: warning: process /usr/lib/postfix/smtp pid 4774 exit status 1
Oct 7 08:48:02 mail postfix/master[3442]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Oct 7 08:50:50 mail postfix/pickup[4782]: AAE16D0345: uid=0 from=<root>
Oct 7 08:50:50 mail postfix/cleanup[4783]: AAE16D0345: message-id=<20051007135050.AAE16D0345@mail.mcrirents.com>
Oct 7 08:50:50 mail postfix/qmgr[3444]: AAE16D0345: from=<root@mail.mcrirents.com>, size=744, nrcpt=1 (queue active)
Oct 7 08:50:50 mail postfix/smtp[4785]: fatal: valid hostname or network address required in SMTP server description: {127.0.
0.1}:10024
Oct 7 08:50:51 mail postfix/qmgr[3444]: warning: premature end-of-input on private/amavis socket while reading input attribut
e name
Oct 7 08:50:51 mail postfix/qmgr[3444]: warning: private/amavis socket: malformed response
Oct 7 08:50:51 mail postfix/qmgr[3444]: warning: transport amavis failure -- see a previous warning/fatal/panic logfile recor
d for the problem description
Oct 7 08:50:51 mail postfix/master[3442]: warning: process /usr/lib/postfix/smtp pid 4785 exit status 1
Oct 7 08:50:51 mail postfix/master[3442]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Oct 7 08:53:25 mail postfix/qmgr[3444]: DD45CD02DE: from=<root@mail.mcrirents.com>, size=781, nrcpt=1 (queue active)
Oct 7 08:53:25 mail postfix/qmgr[3444]: A4E55D02E1: from=<root@mail.mcrirents.com>, size=806, nrcpt=1 (queue active)
Oct 7 08:53:25 mail postfix/qmgr[3444]: A8349D0324: from=<roc1479@hotmail.com>, size=1067, nrcpt=1 (queue active)
Oct 7 08:53:25 mail postfix/qmgr[3444]: A8349D0324: from=<roc1479@hotmail.com>, size=1067, nrcpt=1 (queue active)
Oct 7 08:53:25 mail postfix/qmgr[3444]: B3C26D02DD: from=<root@mail.mcrirents.com>, size=781, nrcpt=1 (queue active)
Oct 7 08:53:25 mail postfix/qmgr[3444]: BBC66D0235: from=<nobody@mail.mcrirents.com>, size=785, nrcpt=1 (queue active)
Oct 7 08:53:25 mail postfix/qmgr[3444]: 80FBED0234: from=<nobody@mail.mcrirents.com>, size=785, nrcpt=1 (queue active)
Oct 7 08:53:25 mail postfix/qmgr[3444]: 22F20D033C: from=<root@mail.mcrirents.com>, size=482, nrcpt=1 (queue active)
Oct 7 08:53:25 mail postfix/smtp[4787]: fatal: valid hostname or network address required in SMTP server description: {127.0.
0.1}:10024
Oct 7 08:53:25 mail postfix/smtp[4786]: fatal: valid hostname or network address required in SMTP server description: {127.0.
0.1}:10024
Oct 7 08:53:26 mail postfix/qmgr[3444]: warning: premature end-of-input on private/amavis socket while reading input attribut
e name
Oct 7 08:53:26 mail postfix/qmgr[3444]: warning: private/amavis socket: malformed response
Oct 7 08:53:26 mail postfix/qmgr[3444]: warning: transport amavis failure -- see a previous warning/fatal/panic logfile recor
d for the problem description
Oct 7 08:53:26 mail postfix/master[3442]: warning: process /usr/lib/postfix/smtp pid 4786 exit status 1
Oct 7 08:53:26 mail postfix/master[3442]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling
Oct 7 08:53:26 mail postfix/master[3442]: warning: process /usr/lib/postfix/smtp pid 4787 exit status 1
Oct 7 08:53:26 mail postfix/qmgr[3444]: A8349D0324: to=<malli@mcrirents.com>, relay=none, delay=65724, status=deferred (deliv
ery temporarily suspended: unknown mail transport error)
Oct 7 08:53:26 mail postfix/qmgr[3444]: B3C26D02DD: to=<root@mail.mcrirents.com>, orig_to=<root>, relay=none, delay=85724, st
atus=deferred (delivery temporarily suspended: unknown mail transport error)
Oct 7 08:53:26 mail postfix/qmgr[3444]: BBC66D0235: to=<root@mail.mcrirents.com>, orig_to=<root>, relay=none, delay=72737, st
atus=deferred (delivery temporarily suspended: unknown mail transport error)
Oct 7 08:53:26 mail postfix/qmgr[3444]: 80FBED0234: to=<root@mail.mcrirents.com>, orig_to=<root>, relay=none, delay=72737, st
atus=deferred (delivery temporarily suspended: unknown mail transport error)
Oct 7 08:53:26 mail postfix/qmgr[3444]: 22F20D033C: to=<postmaster@isp.tld>, relay=none, delay=32004, status=deferred (delive
ry temporarily suspended: unknown mail transport error)
Oct 7 08:53:26 mail postfix/qmgr[3444]: warning: premature end-of-input on private/amavis socket while reading input attribut
e name
Oct 7 08:53:26 mail postfix/qmgr[3444]: warning: private/amavis socket: malformed response
Oct 7 08:53:26 mail postfix/qmgr[3444]: warning: transport amavis failure -- see a previous warning/fatal/panic logfile recor
d for the problem description


When I try to do pop3, it tells me that the password is incorrent.
Reply With Quote
  #10  
Old 7th October 2005, 15:44
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
 
Default

Quote:
Oct 7 08:53:25 mail postfix/smtp[4786]: fatal: valid hostname or network address required in SMTP server description: {127.0.
0.1}:10024
I quote from http://www.howtoforge.com/virtual_po...ta_courier_p2:

Quote:
Next we do some Postfix configuration. Go sure that you replace server1.example.com with a valid FQDN, otherwise your Postfix might not work properly!
Put a valid address into /etc/postfix/main.cf and restart Postfix.
__________________
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
The Following User Says Thank You to falko For This Useful Post:
AbannyvabVask (17th December 2013)
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


All times are GMT +2. The time now is 01:39.


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