Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Aug 2002 17:19:05 +0300 (EEST)
From:      Gheorghe Ardelean <ardelean@physics.uvt.ro>
To:        Jeff Jirsa <jeff@unixconsults.com>
Cc:        freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: anyone running amavis and sendmail on 4.6-STABLE?
Message-ID:  <Pine.BSF.4.21.0208041644580.30633-100000@quasar.physics.uvt.ro>

next in thread | raw e-mail | index | archive | help

Hi,

Thanks to everybody who replayed to my message.

>I'm not sure how exactly you've got it configured, but what you'll have
>to do to scan only incoming mails is to set up a new local delivery
>agent,rather than using the milter interface. Using amavisd, sendmail 8.12.x and
>milter will scan all emails, you'll probably be better off with
>amavis-perl. I'd be able to help you more if I saw the relevant parts of
>your sendmail.cf file ... EX_TEMPFAIL seems to suggest something can't be
>written in the temp directories, so make sure /var/amavis exists and is
>mode 700 (you could even set it to 777 in case there's an ownership issue
>for testing)...

My setup is like this one:

I have f-prot installed, then I installed amavis-perl (which does not
recognize f-prot) so I went to http://sf.net/project/amavis and I've found
a lot of amavis snapshots.

So I removed amavis-perl and I installed amavis-0.3.12pre8 (Rainer--
one amavis developer-- told me that it supports f-prot) and I've patched
my sendmail.cf to use amavis+mail.local. I thing we should switch our
amavis-perl to the new amavis-0.3.12pre8. 

To configure and install I've done:

./configure --prefix=/usr/local
Then I get:

** Configuration summary for amavis 0.3.12pre8 2002-05-31:

  Install amavis as:          /usr/local/sbin/amavis
  Configured for use with:    sendmail
  Configuration type:         simple
  Original sendmail.cf:       
  Use virus scanner(s):       FRISK Antivirus for Linux
  Scanner runs as:            root
  Logging to syslog:          yes
  Run-time directory:         /var/amavis
  Quarantine directory:       /var/virusmails
  Max. recursion depth:       20
  Max. archive nesting depth: 3
  Max. number of extracted files: 500
  Add X-Virus-Scanned header: yes
  Display AMaViS credits:     no 
  Warn sender:                yes
  Reports sent to:            virusalert
  Reports sent by:            postmaster

and after make install I have 

drwx------   2 root    wheel    512 Aug  4 16:55 /var/amavis
drwx------   2 root    wheel    512 Aug  4 16:55 /var/virusmails
-rwxr-xr-x   1 root    wheel  40409 Aug  4 16:55 /usr/local/sbin/amavis

The Mlocal definition in my sendmail.cf is:

Mlocal,         P=/usr/local/sbin/amavis, F=lsDFMAw5:/|@qPSXfnz9, S=EnvFromSMTP/HdrFromL, R=EnvToL/HdrToL,
                T=DNS/RFC822/SMTP,
                A=amavis $f $u -- /usr/libexec/mail.local -l -d $u
Mprog,          P=/bin/sh, F=lsDFMoqeu9, S=EnvFromL/HdrFromL,R=EnvToL/HdrToL, D=$z:/,
                T=X-Unix/X-Unix/X-Unix,  
                A=sh -c $u

Now, when I try to send a clean email I get:

Aug  4 17:00:26 xx sm-mta[2054]: g74E0Q5R002054: from=<ardelean@xx.yy.zz>,
	size=361, class=0, nrcpts=1, msgid=<200208041400.g74E0Lrj002053@xx.yy.zz>,
	proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Aug  4 17:00:26 xx sendmail[2053]: g74E0Lrj002053: to=ardelean, 
	ctladdr=ardelean (1000/1999), delay=00:00:05, xdelay=00:00:05, mailer=relay, 
	pri=30028, relay=localhost.my.domain. [127.0.0.1], dsn=2.0.0, 
	stat=Sent (g74E0Q5R002054 Message accepted for delivery)
Aug  4 17:00:27 xx sm-mta[2056]: NOQUEUE: Warning: mailer local: LMTP flag (F=z) turned off
Aug  4 17:00:28 xx amavis[2057]: starting.  amavis 0.3.12pre8 Sun Aug  4 16:54:21 EEST 2002
Aug  4 17:00:29 xx amavis[2057]: do_exit:513 - ending execution with 75
Aug  4 17:00:29 xx sm-mta[2056]: g74E0Q5R002054: to=<ardelean@xx.yy.zz>,
	ctladdr=<ardelean@xx.yy.zz> (1000/1999), delay=00:00:03,
	xdelay=00:00:02, mailer=local, pri=30645, dsn=4.0.0, stat=Deferred: local
	mailer (/usr/local/sbin/amavis) exited with EX_TEMPFAIL

Despite the stat=Sent the message is lost and never gets delivered.

If I send the same message but with an infected attachment, the behavior
is normal (I receive a message telling me that the message is
infected) and the mail is placed in virusmails directory.

I hope I gave enough details so you can help me, if not please ask.

Best Regards,

Gheorghe ARDELEAN

West Univ. Of Timisoara
Dept. of Theoretical and Computational Physics
V. Parvan No.4, Ro-1900, Timisoara, ROMANIA
Tel: +40-(0)56-194068 Ext. 203, 201, 108 | Fax: +40-(0)56-190333
Email: ardelean@quasar.physics.uvt.ro

Copyright 1999-2002 Gheorghe Ardelean.  All rights reserved.
Duplication and redistribution prohibited without consent of the author.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0208041644580.30633-100000>