Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: qmail vpopmail courier-imap qmail-scanner etc (NEW)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 15, 16, 17 ... 23, 24, 25  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
petterg
Guru
Guru


Joined: 25 Mar 2004
Posts: 500
Location: Oslo, Norway

PostPosted: Thu Dec 02, 2004 11:39 am    Post subject: Reply with quote

ill_brain wrote:
i become this error:
Quote:

@4000000041ae7f541051e11c X-Qmail-Scanner-1.24st:[www110195488868031469] Unable to open pipe to /var/qmail/bin/qmail-queue [16777215] (#4.3.0) - Broken pipe

what can i do?


That is a know error. There is a fix for it earlier in this thread or in this thread: https://forums.gentoo.org/viewtopic.php?t=111817&highlight=
Look for the string "#4.3.0"
Back to top
View user's profile Send private message
aamonten
n00b
n00b


Joined: 27 Aug 2003
Posts: 72
Location: Chile

PostPosted: Fri Dec 03, 2004 8:36 pm    Post subject: Reply with quote

after following the steps, is everything just ready? or should I still configure something else (maybe apache)

regards aamonten
Back to top
View user's profile Send private message
petterg
Guru
Guru


Joined: 25 Mar 2004
Posts: 500
Location: Oslo, Norway

PostPosted: Mon Dec 06, 2004 11:47 am    Post subject: Reply with quote

this guide assumes you already have apache, php and pearl already set up and running. There are other guides for that.
Back to top
View user's profile Send private message
blueribbon
n00b
n00b


Joined: 21 Aug 2003
Posts: 65

PostPosted: Tue Dec 07, 2004 11:47 am    Post subject: Reply with quote

I'm using this kind of setup (although only the simple things, no qmail-scanner nor spamassassin, etc...) and everything is going alright, except for the smtp auth.
When a user tries to authenticate itself, the first time vchkpw fails
Code:
Dec  6 21:50:08 [vpopmail] vchkpw-smtp: password fail

but then it succeeds immediatly after
Code:
Dec  6 21:50:13 [vpopmail] vchkpw-smtp: (PLAIN) login success

This is very annoying, besides the fact that this only happens with Thunderbird, with other e-mail clients they give an error message and the connection is terminated. Is there any way to solve this thing?
Back to top
View user's profile Send private message
petterg
Guru
Guru


Joined: 25 Mar 2004
Posts: 500
Location: Oslo, Norway

PostPosted: Wed Dec 08, 2004 1:38 pm    Post subject: Reply with quote

Maybe you need to set the client to use tsl / ssl before sending password. Maybe thunderbird tries without tls first, then when it fails it will retry with tls.
Back to top
View user's profile Send private message
blueribbon
n00b
n00b


Joined: 21 Aug 2003
Posts: 65

PostPosted: Wed Dec 08, 2004 2:28 pm    Post subject: Reply with quote

petterg wrote:
Maybe you need to set the client to use tsl / ssl before sending password. Maybe thunderbird tries without tls first, then when it fails it will retry with tls.


No, unfortunately, that's not the problem, but thank you for the suggestion.

Didn't it happen with any of you?
Back to top
View user's profile Send private message
petterg
Guru
Guru


Joined: 25 Mar 2004
Posts: 500
Location: Oslo, Norway

PostPosted: Thu Dec 09, 2004 12:47 am    Post subject: Reply with quote

blueribbon wrote:
No, unfortunately, that's not the problem, but thank you for the suggestion.


What happens if you telnet to your smtp server and try to run authentication without using tls?
(Someone wrote earlier in this thread how to do the telnet)
Back to top
View user's profile Send private message
blueribbon
n00b
n00b


Joined: 21 Aug 2003
Posts: 65

PostPosted: Thu Dec 09, 2004 10:14 am    Post subject: Reply with quote

Well, I've restricted the problem. It seems that the issue in on CRAM-MD5 authentication... Is there anything I should know about it?
Back to top
View user's profile Send private message
petterg
Guru
Guru


Joined: 25 Mar 2004
Posts: 500
Location: Oslo, Norway

PostPosted: Sat Dec 11, 2004 6:24 pm    Post subject: Reply with quote

blueribbon wrote:
Well, I've restricted the problem. It seems that the issue in on CRAM-MD5 authentication... Is there anything I should know about it?

Maybe that you should use vchkpw as the guide tell to?
Back to top
View user's profile Send private message
blueribbon
n00b
n00b


Joined: 21 Aug 2003
Posts: 65

PostPosted: Sun Dec 12, 2004 2:36 am    Post subject: Reply with quote

I found that the only solution to use CRAM-MD5 authentication is to have clear password stored... well, I've just removed CRAM-MD5 from the available authentication protocols.
Back to top
View user's profile Send private message
stripe
n00b
n00b


Joined: 04 Jan 2004
Posts: 72
Location: Prague

PostPosted: Sun Dec 12, 2004 12:58 pm    Post subject: Reply with quote

ill_brain wrote:
i become this error:


Quote:

@4000000041ae7f541051e11c X-Qmail-Scanner-1.24st:[www110195488868031469] Unable to open pipe to /var/qmail/bin/qmail-queue [16777215] (#4.3.0) - Broken pipe
@4000000041ae7f54114568dc X-Qmail-Scanner-1.24st:[www110195488868031469] Unable to close pipe to /var/qmail/bin/qmail-queue [255] (#4.3.0) - Illegal seek
@4000000041ae7f7c2cb8bcf4 X-Qmail-Scanner-1.24st:[www110195492768031581] Unable to open pipe to /var/qmail/bin/qmail-queue [16777215] (#4.3.0) - Broken pipe
@4000000041ae7f7c2da595c4 X-Qmail-Scanner-1.24st:[www110195492768031581] Unable to close pipe to /var/qmail/bin/qmail-queue [255] (#4.3.0) - Illegal seek



what can i do?


please go back and read through my posts. It´s a directory permissions issue. I´ve tuned the method to be as much easier, as can be....
_________________
Sick of computers? Well, Czech girls and beer solve it! Trust me :-)
Back to top
View user's profile Send private message
stripe
n00b
n00b


Joined: 04 Jan 2004
Posts: 72
Location: Prague

PostPosted: Sun Dec 12, 2004 1:18 pm    Post subject: Reply with quote

and for you all guys who solve the problem with spamassassin recently, if you have upgraded perl, just edit
Code:

/usr/bin/spamd
/usr/bin/spamassassin


find and change the value from "5.8.4" to 5.8.5" and restart the spamd daemon. This issue resolves the spam technics back to work.
_________________
Sick of computers? Well, Czech girls and beer solve it! Trust me :-)
Back to top
View user's profile Send private message
petterg
Guru
Guru


Joined: 25 Mar 2004
Posts: 500
Location: Oslo, Norway

PostPosted: Sun Dec 12, 2004 4:42 pm    Post subject: Reply with quote

stripe wrote:
and for you all guys who solve the problem with spamassassin recently, if you have upgraded perl, just edit
Code:

/usr/bin/spamd
/usr/bin/spamassassin


find and change the value from "5.8.4" to 5.8.5" and restart the spamd daemon. This issue resolves the spam technics back to work.


I upgraded qmail-scanner to 1.24 (from 1.16) and that fixed my problem after upgrading perl. (But clamd need to run as root to work!)

Is it the reference to /usr/lib/perl5/vendor_perl/5.8.4 you're saying we should change to /usr/lib/perl5/vendor_perl/5.8.5 ?
I don't have any /usr/lib/perl5/vendor_perl/5.8.5, but I do have a /usr/lib/perl5/5.8.5/ is that the one it should point to?
Back to top
View user's profile Send private message
stripe
n00b
n00b


Joined: 04 Jan 2004
Posts: 72
Location: Prague

PostPosted: Sun Dec 12, 2004 5:03 pm    Post subject: Reply with quote

petterg wrote:

I upgraded qmail-scanner to 1.24 (from 1.16) and that fixed my problem after upgrading perl. (But clamd need to run as root to work!)

Is it the reference to /usr/lib/perl5/vendor_perl/5.8.4 you're saying we should change to /usr/lib/perl5/vendor_perl/5.8.5 ?
I don't have any /usr/lib/perl5/vendor_perl/5.8.5, but I do have a /usr/lib/perl5/5.8.5/ is that the one it should point to?


if you reemerged qmail-scanner after perl, it is not necessary to change anything. This I recommended for guys who upgraded perl after qmail-scanner, how it was released in portage, cuz I do not think reemrge whole scanner is required, when you can fix it in a second by hand.

clamav runs of course as an user of your choice. I recommend to use the same user for whole mail system - e.g. qmaild...
_________________
Sick of computers? Well, Czech girls and beer solve it! Trust me :-)
Back to top
View user's profile Send private message
petterg
Guru
Guru


Joined: 25 Mar 2004
Posts: 500
Location: Oslo, Norway

PostPosted: Sun Dec 12, 2004 9:25 pm    Post subject: Reply with quote

stripe wrote:
if you reemerged qmail-scanner after perl, it is not necessary to change anything. This I recommended for guys who upgraded perl after qmail-scanner, how it was released in portage, cuz I do not think reemrge whole scanner is required, when you can fix it in a second by hand.


The changes you mentioned were for spamassassin, right? I did not reemerge spamassassin, only the scanner.

stripe wrote:

clamav runs of course as an user of your choice. I recommend to use the same user for whole mail system - e.g. qmaild...

See, that's a problem when it comes to qmail-scanner 1.2x ... it runs as qscand with a wrapper. Combined with clamd running as clamav this does make permissions and fileownership tricky. The clamav faq recomende to run clamd as qscand, but that makes this error when mail got attachments:
Code:
X-Qmail-Scanner-1.24:[some numbers] clamdscan: corrupt or unknown clamd scanner error or memory/resource/perms problem - exit status 512/2

Running clamd as root works, but I don't like it.

Also - downgrading qmail-scanner to 1.16 after upgrading perl results in smtp sessions timing out.
Aparently I'm the only one with this problem, but I'm making up for it by having the same problem on 3 servers.
Back to top
View user's profile Send private message
eltech
Guru
Guru


Joined: 05 Nov 2002
Posts: 582
Location: New York

PostPosted: Thu Dec 16, 2004 6:09 pm    Post subject: Reply with quote

ok .. upgrades create headaches ..

I have done everythign this thread has going.. but i still get the error below.. any ideas?

Code:
2004-12-16 13:02:45.032028500 X-Qmail-Scanner-1.24st:[pcns.pcn.com110322016568014737] /var/spool/qmailscan/tmp/pcns.pcn.com110322016568014737 exists - try again later...
Back to top
View user's profile Send private message
eltech
Guru
Guru


Joined: 05 Nov 2002
Posts: 582
Location: New York

PostPosted: Thu Dec 16, 2004 6:51 pm    Post subject: Reply with quote

Well i used the fixes below ..

Anyone see any future problems with this?


2004-12-16 13:29:38.080895500 X-Qmail-Scanner-1.24st:[pcns.pcn.com110322177568027871] clamdscan: corrupt or unknown clamd scanner error or memory/resource/perms problem - exit status 512/2

The fix is.


mv /usr/bin/clamdscan /usr/bin/clamdscan.orig

ln -s /usr/bin/clamscan /usr/bin/clamdscan


@40000000418a6b310a1b49b4 tcpserver: ok 24751 :192.168.2.100:25 lists.gentoo.org:156.56.111.196::39106


@40000000418a6b312d0788d4 X-Qmail-Scanner-1.23st:[pcns.mydomain.com109959043966024752] /var/spool/qmailscan/tmp/pcns.mydomain.com109959043966024752 exists - try again later...


the fix is


chown qmaild:nofiles -R /var/spool/qmailscan
Back to top
View user's profile Send private message
petterg
Guru
Guru


Joined: 25 Mar 2004
Posts: 500
Location: Oslo, Norway

PostPosted: Sat Dec 18, 2004 3:45 pm    Post subject: Reply with quote

eltech wrote:

2004-12-16 13:29:38.080895500 X-Qmail-Scanner-1.24st:[pcns.pcn.com110322177568027871] clamdscan: corrupt or unknown clamd scanner error or memory/resource/perms problem - exit status 512/2


My fix was to comment out the User clamav from clamd.conf. (It is commented by default.) The result is that clamd will run as root.
clamdscan is supposed to be better than clamscan in some way. (I don't know why it's better.) I also tried the clamscan->clamdscan replacement. It seemed to work, but sometimes mails containing virus passed the scanner undetected.
The clamav FAQ tell us to run clamd as qscand - it's been working for some, not for me.

So far running as root seems to be the way to go.
Back to top
View user's profile Send private message
Lokheed
Veteran
Veteran


Joined: 12 Jul 2004
Posts: 1295
Location: /usr/src/linux

PostPosted: Sun Dec 19, 2004 7:46 pm    Post subject: Reply with quote

Added to wiki: http://gentoo-wiki.com/HOWTO_Setup_QMAIL_VPOPMAIL_and_Other_Mail_Servers
Back to top
View user's profile Send private message
sucarino
n00b
n00b


Joined: 20 Aug 2004
Posts: 32
Location: San Jose, Costa Rica

PostPosted: Mon Dec 27, 2004 8:03 pm    Post subject: SA questions Reply with quote

i've been following this thread and still have some questions. I have all of this installed in a production server working for more than 6 months without major problems even when i needed to updated/fixed any kind of bugs or incompatibilities. My questions are :roll::

1- what user should "spamd" run under? i've seen descriptions of /etc/conf.d/spamd in this thread using spamd, qscand, qmaild and vpopmail user. I'm using vpopmail (SPAMD_OPTS="-v -r -i -m 5 -u vpopmail siteconfigpath=/etc/mail/spamassassin/local.cf") . Is this the recommended user?

2- i've seen in some other forums indications to run a cron.daily with "setuidgid qmaild /var/qmail/bin/qmail-scanner-queue.pl -z". Is this recommended? What exactly does it initialize?

3- i've recently update my spamassassin from 2.64 to 3.02. Everything is up & running except that i can't restart /etc/init.d/spamd because there is no spamd.pid file. I read that i need to include option "-r" in spamd conf in order to create the pid file (due to new architecture of SA), but the script can't write in /var/run/ folder. Any ideas? How can I restart the service when i need to change someting ie. local.cf ??. I don't want restart computer, of course 8O

/etc/init.d/spamd restart
* Stopping spamd...
* Failed to stop spamd

as you may note, sorry for my english :oops: ... and thanks to all of you!!! :lol:
Back to top
View user's profile Send private message
petterg
Guru
Guru


Joined: 25 Mar 2004
Posts: 500
Location: Oslo, Norway

PostPosted: Tue Dec 28, 2004 2:28 pm    Post subject: Re: SA questions Reply with quote

sucarino wrote:

1- what user should "spamd" run under? i've seen descriptions of /etc/conf.d/spamd in this thread using spamd, qscand, qmaild and vpopmail user. I'm using vpopmail (SPAMD_OPTS="-v -r -i -m 5 -u vpopmail siteconfigpath=/etc/mail/spamassassin/local.cf") . Is this the recommended user?

I'm also running it as vpopmail. Don't think it really matters as long as it works. The correct would probably be to run as spamd, but maybe that would make a conflict with other parts of the system.

sucarino wrote:

2- i've seen in some other forums indications to run a cron.daily with "setuidgid qmaild /var/qmail/bin/qmail-scanner-queue.pl -z". Is this recommended? What exactly does it initialize?

From the doc: "-z - gather virus scanner/DAT versions and cleanup old temp files"
I only run it after upgrading the system.

sucarino wrote:

3- i've recently update my spamassassin from 2.64 to 3.02. Everything is up & running except that i can't restart /etc/init.d/spamd because there is no spamd.pid file.

I guess I'll upgrade tonight. Have you noticed any changes from the 2.64?

sucarino wrote:

I read that i need to include option "-r" in spamd conf in order to create the pid file (due to new architecture of SA), but the script can't write in /var/run/ folder. Any ideas? How can I restart the service when i need to change someting ie. local.cf ??. I don't want restart computer, of course

Is there any spamd process running on your system? If not it might just have gotten confused after the upgrade. What if you create a folder /var/run/spamd and give it world write access (777), then modify the startup script to place the pid file in that folder. Then try to start spamd.
If it starts, look at the pid-file. Modify ownership of the folder so that the user the pid was created as gets write access, and remove world write access to the folder.
Back to top
View user's profile Send private message
petterg
Guru
Guru


Joined: 25 Mar 2004
Posts: 500
Location: Oslo, Norway

PostPosted: Tue Dec 28, 2004 7:25 pm    Post subject: Reply with quote

sucarino:
I've installed spamassassin 3.02 now, and here's the way to make it stop:
Code:

# mkdir /var/run/spamd
# nano -w /etc/init.d/spamd

modify the pidfile location. Make it read
Code:
pidfile=/var/run/spamd/spamd.pid

save and exit
find out the PID spamd has at the moment. One way to do this is
Code:

# tail --lines=200 /var/log/messages |grep spamd |grep write |grep PID

(you may need to increase the number of lines. Also if you're rotating the logs, you should search the logfile for the day you first had the problem (probably the day you upgraded spamassassin).)
There you should find a line reading
Code:

Dec 28 20:28:54 lux spamd[16518]: Can't write to PID file: Permission denied

then run (16518 is the pid in this example)
Code:

# echo 16518 > /var/run/spamd/spamd.pid
# chown vpopmail:vpopmail /var/run/spamd

(Assuming you're running spamd as vpopmail user.)
Then you should be able to stop/start/restart spamd again.

Regarding which user to run spamd as... this is my guessing: after qmail-scanner 1.20+ I think it can as whoever it wants. With qmail-scanner 1.16 it had to run as vpopmail if you were using vpopmail and qmaild if you did not run vpopmail.
I've had mine running as vpopmail all the time, even with QmS 1.24. Changed it to qscand - did some testing - seems to work fine. I'll keep it that way until I find something that doesn't work. Thought there would be some files somewhere that spamd use with the autolearn functionality that would be owned by vpopmail, but I can't find any. I guess these (if I find them) should change ownership to qscand.

Edit: Think it might be a good idea to reemerge QmS after upgrading spamassassin. Eventhoug it seems to work without.
Back to top
View user's profile Send private message
petterg
Guru
Guru


Joined: 25 Mar 2004
Posts: 500
Location: Oslo, Norway

PostPosted: Tue Dec 28, 2004 10:50 pm    Post subject: Reply with quote

Turns out that the spam-score depends on the user spamd is running as!
Until tonight I've been running spamd as vpopmail. Now it runs as qscand. When running as vpopmail the score for spam is higher and the score for ham is lower than when running as qscand!
Asumed this is casued by permissions to autolearn data - does anyone know where those files are located so that I can change the ownership of them?
(files in /usr/share/spamassassin are owned by root - hence access to them should not be affected by spamd running as vpopmail or qscand)
Back to top
View user's profile Send private message
radulucian
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 151
Location: Bucharest Romania

PostPosted: Wed Dec 29, 2004 12:49 am    Post subject: dspam anyone ? Reply with quote

has anyone managed to get DSPAM (de-spam) to work with the configuration discussed here or something even close to this one ?

my Spamassassin is geting more and more stupid, not to speak about its slowness, and i would really like to give dspam a try, but i am having a really hard time getting it to work with qmail-scanner....

any hints appreciated!
Back to top
View user's profile Send private message
petterg
Guru
Guru


Joined: 25 Mar 2004
Posts: 500
Location: Oslo, Norway

PostPosted: Wed Dec 29, 2004 1:08 am    Post subject: Reply with quote

Based on just a few mails I've got tonight, it seems like spamassassin 3.02 is 10-20% faster than SA 2.64 - so that's good. But I agree with you, it's slow. If any other program would do the same job faster I would switch.

Figured out where the data for Bayes is stored: ~/.spamassassin.
Where ~ is the homedir of the user spamd is running as.
(That was the end of a night discussing spamassassin with myself here. Hope someone will find it usefull.)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3 ... 15, 16, 17 ... 23, 24, 25  Next
Page 16 of 25

 
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