Re: amavisd-new postfix issue

2004-06-30 Thread dave
Hello,
Thanks, i did that. The adding of the -v option isn't giving me any
additional information, it's just saying what it said before, smtpd is dying
with exit status 1, and now the error "server did not send an smtp greeting.
I think my next move is to try a complete reinstall. I didn't want to do
this, but i'm not seeing the problem and as i said -v isn't really helping.
Thanks.
Dave.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: amavisd-new postfix issue

2004-06-30 Thread Remko Lodder
dave wrote:
Hello,
Alright, i am still having this issue, and now another has cropped up. I
am getting an error: "server dropped connection before sending the initial
smtp greeting."
The only thing i can think of is i changed some setting trying to get
this working. However like before that is the only message i'm getting in my
maillog. If anyone has any suggestions i've posted my configs for postfix
and amavisd at:
http://www.davemehler.com/postfix
Any suggestions welcome.
Thanks.
Dave.
As far as i can see they look okay (but since it involves a lot of lines 
i might overlooked something)

Again the question: What does the postfix mention when you add smtpd -v 
in the master.cf (The upper smtpd option that is)

Since that gives verbose information it might tell you _what_ is wrong.
Please try that ;-)
Cheers
--
Kind regards,
Remko Lodder   |[EMAIL PROTECTED]
Reporter DSINet|[EMAIL PROTECTED]
Projectleader Mostly-Harmless  |[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: amavisd-new postfix issue

2004-06-30 Thread dave
Hello,
Alright, i am still having this issue, and now another has cropped up. I
am getting an error: "server dropped connection before sending the initial
smtp greeting."
The only thing i can think of is i changed some setting trying to get
this working. However like before that is the only message i'm getting in my
maillog. If anyone has any suggestions i've posted my configs for postfix
and amavisd at:
http://www.davemehler.com/postfix
Any suggestions welcome.
Thanks.
Dave.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: amavisd-new postfix issue

2004-06-30 Thread Remko Lodder
Logan Ashby wrote:
On Mon, 28 Jun 2004 22:39:40 -0400, dave <[EMAIL PROTECTED]> wrote:

Jun 28 21:35:01 zeus amavis[68580]: (68580-01) WARN: all primary virus
scanners failed, considering backups
Jun 28 21:35:01 zeus postfix/smtpd[68669]: fatal: open dictionary: need
"type:name" form instead of: "#"
Jun 28 21:35:02 zeus postfix/master[68635]: warning: process
/usr/local/libexec/postfix/smtpd pid 68669 exit status 1
Jun 28 21:35:02 zeus postfix/master[68635]: warning:
/usr/local/libexec/postfix/smtpd: bad command startup -- throttling

My guess would be a misplaced comment in main.cf or master.cf.  Can
you post the relevant lines with a couple of lines of surrounding
context?
I would agree with Logan here,
There is an typo perhaps below the amavis statement in your 
smtp_recipients option (or however it was called ;-))
Could you show us those lines? (They dont contain any privileged 
information imho so it can be safely done)

Cheers
--
Kind regards,
Remko Lodder   |[EMAIL PROTECTED]
Reporter DSINet|[EMAIL PROTECTED]
Projectleader Mostly-Harmless  |[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: amavisd-new postfix issue

2004-06-29 Thread dave
Hi,
Thanks for your reply. I thought of a misplaced comment in postfix, but
two things lead me away from that. Firstly, this only occurs when i bring
amavisd in to the picture. And secondly, postfix check does not report any
syntax errors.
I'm getting tempted to post these files somewhere, this problem is extremely
elusive.
Dave.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: amavisd-new postfix issue

2004-06-29 Thread Logan Ashby
On Mon, 28 Jun 2004 22:39:40 -0400, dave <[EMAIL PROTECTED]> wrote:

> Jun 28 21:35:01 zeus amavis[68580]: (68580-01) WARN: all primary virus
> scanners failed, considering backups
> Jun 28 21:35:01 zeus postfix/smtpd[68669]: fatal: open dictionary: need
> "type:name" form instead of: "#"
> Jun 28 21:35:02 zeus postfix/master[68635]: warning: process
> /usr/local/libexec/postfix/smtpd pid 68669 exit status 1
> Jun 28 21:35:02 zeus postfix/master[68635]: warning:
> /usr/local/libexec/postfix/smtpd: bad command startup -- throttling

My guess would be a misplaced comment in main.cf or master.cf.  Can
you post the relevant lines with a couple of lines of surrounding
context?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: amavisd-new postfix issue

2004-06-29 Thread dave
Hello,
My thanks to everyone who has so far offered help. Unfortunately i'm not
any closer to fixing this. I had to enable amavisd to log through syslog and
set it to mail so it would put output in maillog, then i added -v to the end
of the postfix smtpd line in master.cf. I then enabled content_filter in
main.cf, and tried to send a test message. Well, it didn't work and after
going through the resulting log file which vividly detailed the smtp
transaction i got the same error from smtpd as in my original post, no
additional information.
Any other suggestions welcome.
Thanks.
Dave.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: amavisd-new postfix issue

2004-06-29 Thread uidzero
dave wrote:
Hello,
   Thanks for your reply. The strange thing is amavisd isn't logging, i've
got logging set to a file and i'm not getting any feedback. Here's something
strange, i stopped postfix, started up amavisd, then restarted postfix
forgetting inadvertently to uncomment the content_filter line, it didn't
matter because i got the same behavior from smtpd on postfix.
   Keep the ideas coming.
Thanks.
Dave.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
 


Dave, I've been working on postfix with clamav, amavis, and SA.
In your "/usr/local/etc/postfix/master.cf" at he bottom make sure you 
have these lines and make sure that they are indented. It took me a day 
or so to figure that out. (Again, make sure all of the "-o etc..." is 
idented  under the main heading.)

# amavis configuration
smtp-amavis unix - - n - 2 smtp
  -o smtp_data_done_timeout=1200
  -o disable_dns_lookups=yes
127.0.0.1:10025 inet n - n - - smtpd
  -o content_filter=
  -o local_recipient_maps=
  -o relay_recipient_maps=
  -o smtpd_restriction_classes=
  -o smtpd_client_restrictions=
  -o smtpd_helo_restrictions=
  -o smtpd_sender_restrictions=
  -o smtpd_recipient_restrictions=permit_mynetworks,reject
  -o mynetworks=127.0.0.0/8
  -o strict_rfc821_envelopes=yes
Hope this helps, if it doesn't, please let me know and I apologize. :)
Michael
--
Michael D. Whities
[EMAIL PROTECTED]
http://www.one-arm.com
--
There are four colors of hats to watch for: 
Black, White, Grey, and Red.

The meanings are: 
Cracker, Hacker, Guru, and Victim.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: amavisd-new postfix issue

2004-06-29 Thread Remko Lodder
dave wrote:
Hello,
Thanks for your reply. The strange thing is amavisd isn't logging, i've
got logging set to a file and i'm not getting any feedback. Here's something
strange, i stopped postfix, started up amavisd, then restarted postfix
forgetting inadvertently to uncomment the content_filter line, it didn't
matter because i got the same behavior from smtpd on postfix.
Keep the ideas coming.
Thanks.
Dave.
My amavis logs to syslog:
# true (e.g. 1) => syslog;  false (e.g. 0) => logging to file
$DO_SYSLOG = 1;   # (defaults to false)
#$SYSLOG_LEVEL = 'user.info'; # (defaults to 'mail.info')
there is something in your logfile there? (/var/log/maillog or 
/var/log/messages or something :-))

Perhaps you sould look at that.
Also changing in your master.cf file
# ==
# service type  private unpriv  chroot  wakeup  maxproc command + args
#   (yes)   (yes)   (yes)   (never) (100)
# ==
smtp  inet  n   -   n   -   -   smtpd
to
smtp  inet  n   -   n   -   -   smtpd -v
should give you verbose logging, that might help solving the problem...
Let us know what happends ...
--
Kind regards,
Remko Lodder   |[EMAIL PROTECTED]
Reporter DSINet|[EMAIL PROTECTED]
Projectleader Mostly-Harmless  |[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: amavisd-new postfix issue

2004-06-29 Thread dave
Hello,
Thanks for your reply. The strange thing is amavisd isn't logging, i've
got logging set to a file and i'm not getting any feedback. Here's something
strange, i stopped postfix, started up amavisd, then restarted postfix
forgetting inadvertently to uncomment the content_filter line, it didn't
matter because i got the same behavior from smtpd on postfix.
Keep the ideas coming.
Thanks.
Dave.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: amavisd-new postfix issue

2004-06-29 Thread Jorn Argelo
dave wrote:
Hi,
   I've got a FreeBSD 5.2.1 box running postfix 2.1, spamassassin 2.63,
amavisd-new-20030616.p9, dcc-dccd-1.2.48, and razor-agents-2.40 all
installed via ports. I'm having issues with dcc-dccd and razor-agents not
working, but i believe that's due to my firewall, anyone know what ports
they use, and that's not the purpose of this. I've got amavisd-new as a
postfix content filter. It sends messages through spamassassin and an
antivirus program, spamassassin interfaces with razor and dcc, which until i
get those ports i've disabled. My problem is with amavisd-new, when i have
the content_filter line uncommented in main.cf smtpd throttles itself,
comment out that line and it works fine. I have no idea what the issue is, i
manually run amavisd and it does not report any syntax errors. The below is
the strange error i'm getting. I don't get any startup errors from either
amavisd-new or postfix, and this only occurs when the content_filter line is
uncommented.
 

Here, take a look at my log. Do note that I'm using Postfix 2.1 and 
ClamAV. I'm not really sure if spamassassin is doing his job right, but 
that's not really the point now.

Jun 29 16:50:44 www postfix/smtpd[83091]: connect from 
bay13-f103.bay13.hotmail.com[64.4.31.103]
Jun 29 16:50:45 www postfix/smtpd[83091]: 2F518809E: 
client=bay13-f103.bay13.hotmail.com[64.4.31.103]
Jun 29 16:50:45 www postfix/cleanup[83094]: 2F518809E: 
message-id=<[EMAIL PROTECTED]>
Jun 29 16:50:45 www postfix/qmgr[40431]: 2F518809E: 
from=<[EMAIL PROTECTED]>, size=4706, nrcpt=1 (queue active)
Jun 29 16:50:45 www postfix/smtpd[83091]: disconnect from 
bay13-f103.bay13.hotmail.com[64.4.31.103]
Jun 29 16:50:46 www postfix/smtpd[83096]: connect from 
localhost.demon.nl[127.0.0.1]
Jun 29 16:50:46 www postfix/smtpd[83096]: 2C23D8325: 
client=localhost.demon.nl[127.0.0.1]
Jun 29 16:50:46 www postfix/cleanup[83094]: 2C23D8325: 
message-id=<[EMAIL PROTECTED]>
Jun 29 16:50:46 www postfix/qmgr[40431]: 2C23D8325: 
from=<[EMAIL PROTECTED]>, size=5150, nrcpt=1 (queue active)
Jun 29 16:50:46 www postfix/smtpd[83096]: disconnect from 
localhost.demon.nl[127.0.0.1]
Jun 29 16:50:46 www postfix/smtp[83095]: 2F518809E: 
to=<[EMAIL PROTECTED]>, relay=127.0.0.1[127.0.0.1], delay=1, status=sent 
(250 2.6.0 Ok, id=82376-09, from MTA: 250 Ok: queued as 2C23D8325)
Jun 29 16:50:46 www postfix/qmgr[40431]: 2F518809E: removed
Jun 29 16:50:46 www postfix/local[83097]: 2C23D8325: 
to=<[EMAIL PROTECTED]>, relay=local, delay=0, status=sent (delivered to 
mailbox)
Jun 29 16:50:46 www postfix/qmgr[40431]: 2C23D8325: removed

As you can see, the scanning done by ClamAV and Spamassassin (at least, 
I think that Spamassassin is working) is being done by the loopback 
interface. It doesn't require an outside connection again. I'm not 
really sure if your firewall is a troublesome factor or not. The only 
ports I have forwarded from my router are 21,22,25,80,110(so FTP, SSH, 
SMTP, HTTP and POP3, in case you didn't know ;)

Give us an output of /var/amavis/amavis.log, and perhaps you can find an 
error there. I think that amavis is the problematic factor in here.

Also, this is what I have in my main.cf concerning the content_filter 
you're talking about. Perhaps it is of use for you.

content_filter = smtp-amavis:[127.0.0.1]:10024
Cheers,
Jorn
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"