[AMaViS-user] how do you tell?
Hi, i just rebuilt my server with updated versions of Spamassassin,amavis,postfix and i'm not sure amavis is working. when i do a ps -aux, i see it running but i don't see anything in maillog(log level is at 2). amavisd debug produces this- Jun 28 12:40:13 mta1.charmer.com /usr/local/sbin/amavisd[14046]: starting. /usr/local/sbin/amavisd at mta1.charmer.com amavisd-new-2.3.1 (20050509), Unicode aware, LANG=en_US Jun 28 12:40:13 mta1.charmer.com /usr/local/sbin/amavisd[14046]: user=, EUID: 0 (0); group=, EGID: 0 10 6 4 3 2 1 0 (0 10 6 4 3 2 1 0) Jun 28 12:40:13 mta1.charmer.com /usr/local/sbin/amavisd[14046]: Perl version 5.008 Jun 28 12:40:13 mta1.charmer.com /usr/local/sbin/amavisd[14046]: INFO: no optional modules: Encode::Unicode::UTF7 unicore::PVA.pl Mail::SpamAssassin::SQLBasedAddrList DBD::mysql Sys::Hostname::Long Mail::SPF::Query Net::CIDR::Lite Net::DNS::RR::SOA Net::DNS::RR::NS Net::DNS::RR::MX Net::DNS::RR::A Net::DNS::RR:: Net::DNS::RR::PTR Net::DNS::RR::CNAME Net::DNS::RR::TXT Jun 28 12:40:13 mta1.charmer.com /usr/local/sbin/amavisd[14046]: Net::Server: 2005/06/28-12:40:13 Pid_file already exists for running process (13962)... aborting\n\n at line 225 in file /usr/lib/perl5/site_perl/5.8.0/Net/Server.pm Jun 28 12:40:13 mta1.charmer.com /usr/local/sbin/amavisd[14046]: Net::Server: 2005/06/28-12:40:13 Server closing! I used to see amavisd all over my maillog and sa hits, now all i see is postfix. thanks a lot --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
RE: [AMaViS-user] how do you tell?
i have those dirs with all the correct perms. i telnet'ed to 10024 and was able to send myself an email but i still see no sa or amavisd in the maillog. it wasn't working before because i had av scanner set to run but no av software installed. after i installed clamav, it was working but still nothing in the maillog or spam stas. thanks -Original Message- From: Gary V [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 2:04 PM To: Kern, Tom Cc: amavis-user@lists.sourceforge.net Subject: Re: [AMaViS-user] how do you tell? Tom wrote: i'm using 0.83. i got it from you(thanks btw!) i used to get that error with the old amavis-new but it still worked. what am i doing wrong? Make sure you have some directories that the new version may need: mkdir /var/amavis/tmp mkdir /var/amavis/db mkdir /var/amavis/var chown -R amavis:amavis /var/amavis chmod -R 750 /var/amavis amavisd stop rm /var/amavis/amavisd.lock rm /var/amavis/amavisd.pid rm /var/amavis/amavisd.sock amavisd start tail -f /var/log/maillog send an email through observe this worked for me, even after installing 0.87 Gary V --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
RE: [AMaViS-user] how do you tell?
thats weird. i entered it and it works. last time i didn't have that line in main.cf only the master.cf stuff and it worked. Thats really bizzare. now the only error i get is - ClamAV-clamd: Can't connect to UNIX socket /tmp/clamd: Connection refused, retrying (2) clamav user is a member of amavis group and amavis user and group have full rights on that file Thanks -Original Message- From: Gary V [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 2:35 PM To: Kern, Tom Cc: amavis-user@lists.sourceforge.net Subject: Re: [AMaViS-user] how do you tell? Tom wrote: i never entered that line. its not there. the amavis settings are in master.cf NOT main.cf Have you commented out the content_filter = smtp-amavis:[127.0.0.1]:10024 in postfix main.cf? thanks If you followed the Scott Henderson HOWTO, this is how you would call amavisd-new. If you don't have a 'content_filter' setting at all, then this is probably the correct setting, and the reason nothing happens. If you do have some sort of 'content_filter' setting, tell us what it is. remember to 'postfix reload' Then tail -f /var/log/maillog and send an email through. You know you can simply set up an email client's outgoing SMTP server to your RHEL3 box and send real mail through it. Gary V --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
RE: [AMaViS-user] how do you tell?
that doesn't work. when i try to start clamd manually, i get this - ERROR: Please edit the example config file /usr/local/etc/clamd.conf. ERROR: Can't open/parse the config file /usr/local/etc/clamd.conf i'm getting tried of clamav. i don't understand why the earlier verison i ran was in /etc/ and now this verison is in that path for no reason whatsoever. my clamd.conf and amavisd.conf point to the same socket dir and clamd is a member of amavis group which has rwx on that dir. still it complains it can't see it maillog- ClamAV-clamd: Can't connect to UNIX socket /tmp/clamd/clamd.sock: No such file or directory, retrying (1) i don't get it. -Original Message- From: Gary V [mailto:[EMAIL PROTECTED] Sent: Tue 6/28/2005 3:24 PM To: Kern, Tom Cc: amavis-user@lists.sourceforge.net Subject: Re: [AMaViS-user] how do you tell? HS^�隊X���'���u(���j̋�{�2(+jب�+kjנ������b^Z0Fl��ڊm~��j�Z�+��b���mƬ�Ƨvj+xg�zb� ��w�v� z۩��)y�_j�a����l��gr��i؝
RE: [AMaViS-user] Pid error
If only it were that simple. i do have a amavis group with gid of 999 from my /etc/group- amavis:x:999: The amavis user and group have full rights on the /var/amavis dir. What else? thanks Mark Martinec wrote: Tom, I'm running Amavis-new-2.3.1 with Postfix(not chrooted) on redhat ES 3 When I try to reload or stop amavis, I get- No PID file /var/amavis/amavisd.pid, can't reload the process Because most likely amavisd is not running. /usr/local/sbin/amavisd[7870]: Net::Server: Setting gid to 999 999 Jun 27 13:49:18 mta1.charmer.com /usr/local/sbin/amavisd[7870]: Net::Server: 2005/06/27-13:49:18 Couldn't become gid 999: \n\n at line 486 in file /usr/lib/perl5/site_perl/5.8.0/Net/Server.pm See? It is not running. It can't change GID to 999 and aborts, probably because you don't have any group with gid 999. Fix that first. Mark --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/ --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
RE: [AMaViS-user] Pid error
Gary V wrote: Tom wrote: Well, i changed the uid/gid to a diff # and still no go. what am i doing wrong? I had the identical setup except for an older verison of amavis on RHEL3 and it worked fine. Now its broken. It doesn't seem to complain about the uid. does that mean thats ok? what does 'grep amavis /etc/passwd' say? Gary V Here is the output- grep 'amavis' /etc/passwd amavis:x:886:886:amavisd-new daemon:/var/amavis:/sbin/nologin --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
RE: [AMaViS-user] Pid error
Gary V wrote: Tom wrote: Gary V wrote: Tom wrote: Well, i changed the uid/gid to a diff # and still no go. what am i doing wrong? I had the identical setup except for an older verison of amavis on RHEL3 and it worked fine. Now its broken. It doesn't seem to complain about the uid. does that mean thats ok? what does 'grep amavis /etc/passwd' say? Gary V Here is the output- grep 'amavis' /etc/passwd amavis:x:886:886:amavisd-new daemon:/var/amavis:/sbin/nologin Try giving shell access, change it to: amavis:x:886:886:amavisd-new daemon:/var/amavis:/bin/sh ^^ or whatever path 'sh' is located Gary V changed it- grep 'amavis' /etc/passwd amavis:x:886:886:amavisd-new daemon:/var/amavis:/bin/bash still get the same error. thanks --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
RE: [AMaViS-user] Pid error
2 questions- 1.how do i uninstall Net::Server? 2. Where can i get an earlier version? CPAN is gonna want to give me the newest version. Thanks for all your help. I guess it would be too much to ask why the newer version seems to break things(or why RHEL breaks the new version)? Thanks again -Original Message- From: Gary V [mailto:[EMAIL PROTECTED] Sent: Monday, June 27, 2005 6:50 PM To: Kern, Tom Cc: amavis-user@lists.sourceforge.net Subject: Re: [AMaViS-user] Pid error Tom wrote: i'm running perl 5.8.0. what's there to upgrade to? I rebuilt the box. it was running before with amavis-new,postifx,spamassassin,clamav and i never got an error. I had to rebuild the box and i updated all the software except RHEL3. the things that i updated was postfix,spamassassin(which isn't running yet) and amavis-new. the perl installation is what came with redhat. i never touched perl either time. i downloaded a new Net::Server mod from cpan. maybe thats it. That's it! My old RH9 box crashed the same way when I upgraded from Net::Server from 0.83 to 0.88! Gary V --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
[AMaViS-user] documentation
Hi, i'm doing a rebuild of my entire postfix/amavis/sa server and I was wondering what is the best documentation out there for doing this? Originally i used scott L henderson's guide here- http://www.freespamfilter.org/rh9config.html Its been awhile and i was wondering if this is still a good how to Thanks a lot --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click ___ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/