
5th October 2005, 16:40
|
|
Senior Member
|
|
Join Date: Oct 2005
Posts: 547
Thanks: 10
Thanked 42 Times in 41 Posts
|
|
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?
|

5th October 2005, 17:22
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
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.
|

5th October 2005, 19:32
|
|
Senior Member
|
|
Join Date: Oct 2005
Posts: 547
Thanks: 10
Thanked 42 Times in 41 Posts
|
|
I'll give your tutorial a try.
|

6th October 2005, 17:12
|
|
Senior Member
|
|
Join Date: Oct 2005
Posts: 547
Thanks: 10
Thanked 42 Times in 41 Posts
|
|
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.
|

6th October 2005, 18:43
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
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, ...
|

6th October 2005, 18:57
|
|
Senior Member
|
|
Join Date: Oct 2005
Posts: 547
Thanks: 10
Thanked 42 Times in 41 Posts
|
|
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.
|

6th October 2005, 20:51
|
|
Senior Member
|
|
Join Date: Oct 2005
Posts: 547
Thanks: 10
Thanked 42 Times in 41 Posts
|
|
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.
|

7th October 2005, 03:32
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
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?
|

7th October 2005, 15:29
|
|
Senior Member
|
|
Join Date: Oct 2005
Posts: 547
Thanks: 10
Thanked 42 Times in 41 Posts
|
|
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.
|

7th October 2005, 15:44
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
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.
|
| 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 02:30.
|
Recent comments
17 hours 18 min ago
1 day 2 hours ago
1 day 3 hours ago
1 day 7 hours ago
1 day 11 hours ago
1 day 11 hours ago
1 day 14 hours ago
2 days 6 min ago
2 days 5 hours ago
2 days 6 hours ago