Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
MailScanner Postfix ClamAV SpamAssassin HowTo
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
axses
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2003
Posts: 110

PostPosted: Thu Apr 29, 2004 4:47 am    Post subject: Reply with quote

Hehehe

For a moment there I thought I was going about this wrong the whole time. I have 1 production setup for a company of 20 users and 1 setup for private use. My 3rd setup is a dev setup for testing.

*wipes sweat frrom brow*

Glad to be of help.

axses
Back to top
View user's profile Send private message
Pardok
n00b
n00b


Joined: 30 Mar 2004
Posts: 29

PostPosted: Thu Apr 29, 2004 6:02 am    Post subject: Reply with quote

How would I go about integrating a third party POP mail into this configuration?

Has anyone tried fetchmail/procmail with Mailscanner etc?

I have an additional POP account I'd like to run through mailscanner, check for spam etc, then deliver to a courier-imap running under a postfix/clamav/spamassassin setup.

Doable?
Back to top
View user's profile Send private message
Wi1d
Apprentice
Apprentice


Joined: 15 Mar 2004
Posts: 282
Location: USA, Iowa

PostPosted: Mon Jul 26, 2004 5:15 am    Post subject: Reply with quote

Great howto thanks. I do have one question. Spam is being eleminated but I keep getting this mysterious message in my log:
Code:
Jul 26 00:14:17 home MailScanner[27792]: SpamAssassin installation could not be found

Any clues?
Back to top
View user's profile Send private message
axses
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2003
Posts: 110

PostPosted: Mon Jul 26, 2004 6:53 am    Post subject: Reply with quote

Hey

Ive never had such a problem, but searching google with your error gave many results. Here is one link from the mailscanner site with various people having the same problem and how they fixed it.

http://www.sng.ecs.soton.ac.uk/mailscanner/serve/cache/241.html

:-)
Back to top
View user's profile Send private message
Wi1d
Apprentice
Apprentice


Joined: 15 Mar 2004
Posts: 282
Location: USA, Iowa

PostPosted: Tue Jul 27, 2004 1:38 am    Post subject: Reply with quote

Thanks for the feedback. I found the problem. Just in case anyone else has a similiar problem, you might need to set 'SpamAssassin Install Prefix =' in your MailScanner.conf. I missed it the first time through :oops:
Back to top
View user's profile Send private message
radixvir
n00b
n00b


Joined: 31 Dec 2003
Posts: 41

PostPosted: Tue Jul 27, 2004 7:41 pm    Post subject: Reply with quote

im having trouble with your init script. it gave me errors so i altered it a little but now i just get different errors:

Code:
www root # /etc/init.d/mailscanner start
 * ERROR:  "/etc/init.d/mailscanner" has syntax errors in it; not executing...


if i run the lines from the script itself everything starts fine

Code:
#!/sbin/runscript

depend() {
        need net
        use logger dns
}

start() {
        ebegin "Starting Incoming Postfix"
        /usr/sbin/postfix -c /etc/postfix.in start &>/dev/null
        eend $?
        ebegin "Starting Outgoing Postfix"
        /usr/sbin/postfix -c /etc/postfix start &>/dev/null
        eend $?
        ebegin "Starting MailScanner"
        /sbin/start-stop-daemon --quiet \
                --start --startas /opt/MailScanner/bin/check_mailscanner \
                --pidfile /var/run/MailScanner.pid
        eend $?
}

stop() {
        ebegin "Stopping MailScanner"
        start-stop-daemon -o --quiet --stop --pidfile /var/run/MailScanner.pid
        [ -f /var/run/MainScanner.pid ] && rm /var/run/MailScanner.pid
        eend $?
        ebegin "Stopping Outgoing Postfix"
        /usr/sbin/postfix -c /etc/postfix stop &>/dev/null
        eend $?
        ebegin "Stopping Incoming Postfix"
        /usr/sbin/postfix -c /etc/postfix.in stop &>/dev/null
        eend $?
}

restart() {
        ebegin "Reloading Incoming Postfix"
        /usr/sbin/postfix -c /etc/postfix.in reload &>/dev/null
        eend $?
        ebegin "Reloading Outgoing Postfix"
        /usr/sbin/postfix -c /etc/postfix reload &>/dev/null
        eend $?
        ebegin "Reloading MainScanner workers"
        pid=`pidof -x MailScanner`
        if[-n "$pid"];
        then
                /bin/kill -HUP $pid
        fi
        eend $?
}


please help, thanks
Back to top
View user's profile Send private message
vector0319
n00b
n00b


Joined: 16 Jun 2003
Posts: 68
Location: Salisbury, MD, USA

PostPosted: Tue Jul 27, 2004 11:56 pm    Post subject: Reply with quote

radixvir,

You can check out this bug page for more info: https://bugs.gentoo.org/show_bug.cgi?id=36060

It has the latest init.d info and even an ebuild for MailScanner.

You can also check out the latest howto info here: http://footon.jheslop.com/howto

If you have any other issues that are not found out here let me know. Thanks,

Jeremy
_________________
"Accept no one's definition of your life, but define yourself."
-- Harvey Fierstein
Back to top
View user's profile Send private message
Wi1d
Apprentice
Apprentice


Joined: 15 Mar 2004
Posts: 282
Location: USA, Iowa

PostPosted: Sat Aug 21, 2004 11:21 pm    Post subject: Reply with quote

Anbody else with this setup upgrade to postfix 2.1.3 and have problems? All my email piles up in the mail queue. mail.log says:
Code:
status=deferred (delivery temporarily suspended: deferred transport)

If I start up postfix with it's own start up scripts it works fine.
Back to top
View user's profile Send private message
moscher
n00b
n00b


Joined: 07 May 2002
Posts: 47

PostPosted: Sun Aug 22, 2004 6:05 pm    Post subject: Reply with quote

hi.

Quote:
Anbody else with this setup upgrade to postfix 2.1.3 and have problems? All my email piles up in the mail queue. mail.log says:
Code:
status=deferred (delivery temporarily suspended: deferred transport)

If I start up postfix with it's own start up scripts it works fine.


here is my log output:
Quote:
Aug 22 19:55:13 h4048 postfix/cleanup[3019]: 5D888BD469D: message-id=<200408221901.50054.tom@tomaw.org>
Aug 22 19:55:13 h4048 postfix/qmgr[2889]: 5D888BD469D: from=<gentoo-user-return-79396-heller=teppichweben.org@lists.gentoo.org>, size=2840, nrcpt=1 (queue active)
Aug 22 19:55:13 h4048 postfix/qmgr[2889]: 5D888BD469D: to=<heller@h4048.serverkompetenz.net>, orig_to=<heller@teppichweben.org>, relay=none, delay=0, status=deferred (delivery temporarily suspended: deferred transport)
Aug 22 19:55:14 h4048 postfix/smtpd[3013]: disconnect from lists.gentoo.org[156.56.111.196]
Aug 22 19:55:18 h4048 MailScanner[2999]: New Batch: Scanning 1 messages, 3209 bytes
Aug 22 19:55:23 h4048 MailScanner[2999]: Virus and Content Scanning: Starting
Aug 22 19:55:24 h4048 MailScanner[2999]: Requeue: 5D888BD469D to F078EBD46AD


but no mail appears in my inbox. when sending mail, it's the same ...

edit: when i start postfix with the noprmal init script the mail gets delivered
Back to top
View user's profile Send private message
Wi1d
Apprentice
Apprentice


Joined: 15 Mar 2004
Posts: 282
Location: USA, Iowa

PostPosted: Sun Aug 22, 2004 6:39 pm    Post subject: Reply with quote

Thats excatly the same problem I'm having. All the mail is stuck in the mail queue and not delivered or sent. I haven't had time to figure out why so I've just been using postfix w/ mailscanner and it works. Good to know I'm not alone.
Back to top
View user's profile Send private message
Wi1d
Apprentice
Apprentice


Joined: 15 Mar 2004
Posts: 282
Location: USA, Iowa

PostPosted: Sun Aug 22, 2004 10:45 pm    Post subject: Reply with quote

Fixed the deferred problem.

Comment out the last line in /etc/postfix/main.cf:

#home_mailbox = .maildir/

Then:

cp /etc/postfix/* /etc/postfix.in
Back to top
View user's profile Send private message
etnoy
Apprentice
Apprentice


Joined: 29 Aug 2003
Posts: 255
Location: Västerås, Sweden

PostPosted: Mon Aug 23, 2004 7:50 am    Post subject: Reply with quote

The URL is broken...
_________________
The md5sum of the above post is 06280ccd85ef9deb49c336e7945f4b5c

God is dead! - Nietzsche
Nietzsche is dead! -God
Back to top
View user's profile Send private message
Wi1d
Apprentice
Apprentice


Joined: 15 Mar 2004
Posts: 282
Location: USA, Iowa

PostPosted: Mon Aug 23, 2004 7:52 am    Post subject: Reply with quote

This one still works:
http://wiki.linuxquestions.org/wiki/Using_MailScanner/Postfix/SpamAssassin/ClamAV_in_Gentoo_Linux
Back to top
View user's profile Send private message
moscher
n00b
n00b


Joined: 07 May 2002
Posts: 47

PostPosted: Mon Aug 23, 2004 9:59 am    Post subject: Reply with quote

thx wild, it's working here too now
Back to top
View user's profile Send private message
BlinkEye
Veteran
Veteran


Joined: 21 Oct 2003
Posts: 1046
Location: Gentoo Forums

PostPosted: Wed Sep 08, 2004 7:48 pm    Post subject: Reply with quote

Wi1d wrote:
Fixed the deferred problem.

Comment out the last line in /etc/postfix/main.cf:

#home_mailbox = .maildir/

Then:

cp /etc/postfix/* /etc/postfix.in

i have the same problem but i don't get your solution. with commenting out you really mean comenting out, i guess so
Code:
#home_mailbox = .maildir/

becomes
Code:
home_mailbox = .maildir/
.
what is your cp command doing? have you created a new directory
Code:
/etc/postfix.in

and simply copied everything over? why is that?

the thing is that postfix works for me - but not if something prohibits my mailserver in delivering the mails (for example a broken adsl-connection). if that happens i get all these deferred mails ...
_________________
Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick
Back to top
View user's profile Send private message
Wi1d
Apprentice
Apprentice


Joined: 15 Mar 2004
Posts: 282
Location: USA, Iowa

PostPosted: Thu Sep 09, 2004 12:27 am    Post subject: Reply with quote

BlinkEye wrote:

i have the same problem but i don't get your solution. with commenting out you really mean comenting out, i guess so
Code:
#home_mailbox = .maildir/

becomes
Code:
home_mailbox = .maildir/
.

When I updated to 2.1.3 it added another "home_mailbox = .maildir/" to my main.cf making a total of two. You don't need two so I commented the last one out. Deleting the line would have worked just as well.

BlinkEye wrote:
what is your cp command doing? have you created a new directory
Code:
/etc/postfix.in

and simply copied everything over? why is that?

If you setup your email according to this howto, you would create /etc/postfix.in. Read the howto for more info.
BlinkEye wrote:
the thing is that postfix works for me - but not if something prohibits my mailserver in delivering the mails (for example a broken adsl-connection). if that happens i get all these deferred mails ...

Bottom line: This paticular setup stopped working for me when I upgraded to 2.1.3 because there were alot of new changes w/ that version of postfix and I had forgot about updating the files in /etc/postfix.in. The best thing to do is to just go over all the steps in the howto since concerning the postfix setup since there are a few other things that need changed in /etc/postfix.in/main.cf after updating that I didn't put in the fix.
Back to top
View user's profile Send private message
BlinkEye
Veteran
Veteran


Joined: 21 Oct 2003
Posts: 1046
Location: Gentoo Forums

PostPosted: Thu Sep 09, 2004 12:46 am    Post subject: Reply with quote

shame on me. i was just so desperate that postfix stoped working again i didn't realize my search returned a HowTo. i didn't read all of the thread and hence asked such a stupid question. i'm really sorry. thank you for your extensive answer.
_________________
Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick
Back to top
View user's profile Send private message
xbmodder
Guru
Guru


Joined: 25 Feb 2004
Posts: 404

PostPosted: Tue Sep 28, 2004 8:03 pm    Post subject: Reply with quote

another mirror on my site!

http://xbmodder.us/postfix/anti-virus-spam-howto.html
Back to top
View user's profile Send private message
ministry
n00b
n00b


Joined: 29 Sep 2004
Posts: 5

PostPosted: Wed Sep 29, 2004 2:02 pm    Post subject: Reply with quote

turtlendog wrote:
Quote:
Isnt convert-binhex in portage? I have been using the portage version and have 2 successfull installations of mailscanner. Have I been using a wrong convert-binhex?


I am such an idiot. Didn't even think about the fact that perl CPAN modules might be in portage.

The shame...

Works with the portage version on Convert::BinHex

Thanks so much for pointing that out !!!


Just to let you know. I had the same problem with Convert::BinHex, but I fixed it in CPAN by installing the following perl module:
MIME::Decoder::BinHex after that my mailscanner config went fine.
And I didn't need to fall back on the portage version, even thou thats a perfectly fine thing to do.
Back to top
View user's profile Send private message
midnite420
n00b
n00b


Joined: 07 Sep 2004
Posts: 16

PostPosted: Mon Oct 04, 2004 7:14 am    Post subject: Reply with quote

Hi i got the following problem, my server is running MailScanner, Postix, Spam Assassin and Clamav. I configured all the services following the Howto on this post and they are running just fine, the only problem that i have is that Mailscanner doesnt scan the incoming and outgoing emails, i tried everything with no luck :cry: the thing is that i got another server running this services fine :o if someone know something about this please let me know i need it running.
Back to top
View user's profile Send private message
phil
n00b
n00b


Joined: 05 May 2003
Posts: 62
Location: Saint Louis, MO

PostPosted: Sun Dec 12, 2004 5:05 am    Post subject: Reply with quote

First let me say thanks for all of the HOWTOs on this, it's been a great help. I used the MS ebuild from bugzilla, and it installed fine with all the recs.

Now, I've had my mailserver working perfectly (postfix, procmail, spamassassin, f-prot) but now I want to use MailScanner so I can provide dcc, razor, pyzor and clamav too. I've followed this HOWTO to the letter:

http://wiki.linuxquestions.org/wiki/Using_MailScanner/Postfix/SpamAssassin/ClamAV_in_Gentoo_Linux#Configuring_MailScanner.conf

The only funny things I saw were during install/config:

Code:
jorge MailScanner # env-update
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...
 *  Service 'postfix' already provide 'mta'!;
 *  Not adding service 'MailScanner-mta'...


So is this not allowing MailScanner to do the MTA? This is what I assume, but if I remove Postfix and it doesn't work, how will I get back? (I use this mailserver constantly, and if I break it, I'm gonna have to fix it...fast ;0))

If I send myself mail, here's what I get:

Code:
==> /var/log/everything/current <==
Dec 11 23:16:50 [imapd] LOGOUT, user=phil, ip=[127.0.0.1], headers=0, body=0, time=0
Dec 11 23:17:11 [postfix/smtpd] connect from unknown[66.45.123.115]
Dec 11 23:17:11 [postfix/smtpd] 5636287EB1: client=unknown[66.45.123.115]
Dec 11 23:17:11 [postfix/cleanup] 5636287EB1: message-id=<7ED8AF6966AB0A46BD0945BA60D1D34C7AD3BD@mywork.com>
Dec 11 23:17:11 [postfix/qmgr] 5636287EB1: from=<me@mywork.com>, size=701, nrcpt=1 (queue active)
Dec 11 23:17:11 [postfix/qmgr] 5636287EB1: to=<me@myhome.com>, relay=none, delay=0, status=deferred (deferred transport)
Dec 11 23:17:11 [postfix/smtpd] disconnect from unknown[66.45.123.115]
MailScanner[27553]: [New Batch] Scanning 1 messages, 1003 bytes_
MailScanner[27553]: [Virus and Content Scanning] Starting_
MailScanner[27553]: [Requeue] 5636287EB1 to CCCDB41E690_


So it seems to start to work, but I never get my email. So I've worked on this for a bit, and cruised the forums/irc, but am stuck here. Turning postfix back on for now so I can email.

Thanks

P
_________________
Left To Chance - apathy is no longer an option
Back to top
View user's profile Send private message
madx
n00b
n00b


Joined: 12 Dec 2004
Posts: 1

PostPosted: Sun Dec 12, 2004 11:45 am    Post subject: Reply with quote

nice Howto,
but why do you use a setup with 2 postfix instances. The orignial Postfix-Howto describes a configuration with only on Postfix-conf.

http://www.sng.ecs.soton.ac.uk/mailscanner/install/postfix.shtml
Back to top
View user's profile Send private message
phil
n00b
n00b


Joined: 05 May 2003
Posts: 62
Location: Saint Louis, MO

PostPosted: Sun Dec 12, 2004 4:13 pm    Post subject: UPDATE: everything working, except for Razor2 [SOLVED] Reply with quote

Whooo! I've got everything working, except for Razor2. I tried to fix it last night, and hosed my MS setup, but now I've got it back. How can I fix Razor2? I'm almost there! :)

Code:
spamd[3936]: [info] setuid to user2 succeeded_
spamd[3936]: [processing message <33296.192.168.0.7.1102867591.squirrel@cryer.us> for user2] 1002._
spamd[3936]: [razor2 check skipped] Can't locate object method "new" via package "Razor2::Client::Agent" at /usr/lib/perl5/vendor_perl/5.8.4/Mail/SpamAssassin/Dns.pm line 403, <GEN44> line 42._
spamd[3936]: [clean message (1.0/5.0) for user2] 1002 in 1.8 seconds, 1281 bytes._


I have the latest versions of Net-dns and Spamassassin:

Code:
jorge root # emerge dev-perl/Net-DNS spamassassin -pvt
 
These are the packages that I would merge, in reverse order:
 
Calculating dependencies ...done!
[ebuild   R   ] mail-filter/spamassassin-2.64  +berkdb +ssl 0 kB
[ebuild   R   ] dev-perl/Net-DNS-0.48  0 kB
 
Total size of downloads: 0 kB


Wow, MS is very, very cool. Think this should go in portage soon.

P

SOLVED: apparently I jumped the gun, after a run of the cron update Razor2 works. The spams I used to get showed up as 7 or 8, but with the new setup on came in at 24! Yeah, I think the rules de jour, dcc and razor2 are doing their job!
_________________
Left To Chance - apathy is no longer an option
Back to top
View user's profile Send private message
wmartino
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2004
Posts: 140

PostPosted: Wed Feb 02, 2005 3:03 am    Post subject: Reply with quote

There is a new ebuild in bugzilla https://bugs.gentoo.org/show_bug.cgi?id=36060.

Have not tried to build yet.
_________________
Intell C2D Q6600 @ 3.0Ghz -- ASUS P5W DH
Zalman 9700 LED -- 8g OCZ Gold Memory -- GECUBE 1950xtx
250g Gentoo64 -- 200g Windows Vista Ultimate -- 200g Mac OSX
250g Windows XP PRO -- Liteon DVD, Pioneer DVR-111D DVD-D/L-RW
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum