Scalix & Amavisd-New HOWTO - Wiki updated

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

interways1
Posts: 13
Joined: Wed May 24, 2006 11:02 am

Postby interways1 » Wed May 31, 2006 1:24 pm

Hi!

I don't have a sendmail.mc file. What are the changes I have to make to the sendmail.cf?

Thanks

Chris

btisdall
Scalix Star
Scalix Star
Posts: 373
Joined: Tue Nov 22, 2005 12:13 pm
Contact:

Postby btisdall » Thu Jun 01, 2006 1:09 am

This is a diff of my sendmail.cf before & after rebuilding it:

bentis@cosmo:/etc/mail$ diff sendmail.cf.nomilter sendmail.cf.withmilter
19c19
< ##### built by root@cosmo.local on Thu Jun 1 06:00:40 BST 2006
---
> ##### built by root@cosmo.local on Fri May 19 11:41:09 BST 2006
66a67,68
>
>
550c552
< #O InputMailFilters
---
> O InputMailFilters=milter-amavis
551a554,560
> # Milter options
> #O Milter.LogLevel
> O Milter.macros.connect=j, _, {daemon_name}, {if_name}, {if_addr}
> O Milter.macros.helo={tls_version}, {cipher}, {cipher_bits}, {cert_subject}, {cert_issuer}
> O Milter.macros.envfrom=i, {auth_type}, {auth_authen}, {auth_ssf}, {auth_author}, {mail_mailer}, {mail_host}, {mail_addr}
> O Milter.macros.envrcpt={rcpt_mailer}, {rcpt_host}, {rcpt_addr}
> O Milter.macros.eom={msg_id}
1670a1680
> Xmilter-amavis, S=local:/var/amavis/amavisd-milter.sock, F=T, T=S:10m;R:10m;E:10m
Ben Tisdall
www.redcircleit.com
London

interways1
Posts: 13
Joined: Wed May 24, 2006 11:02 am

Postby interways1 » Thu Jun 01, 2006 2:29 pm

Hello!
Strangely, after following the setup Amavisd scanns emails, but only adds the X-Virus-Scanned lines.

Mails that are sent by cron/system to root get the correct Spam status headers, though.

Only mails coming in from the outside do not get any spam status indication, nor are they marked/deleted if they contain viruses.

Any ideas?

Thanks a lot so far...

btisdall
Scalix Star
Scalix Star
Posts: 373
Joined: Tue Nov 22, 2005 12:13 pm
Contact:

Postby btisdall » Thu Jun 01, 2006 2:44 pm

Did you make sure your scalix mail domain is in @local_domains_maps in amavisd.conf?

Info's in the wiki.
Ben Tisdall

www.redcircleit.com

London

interways1
Posts: 13
Joined: Wed May 24, 2006 11:02 am

Postby interways1 » Thu Jun 01, 2006 3:57 pm

That fixed it. Do I have to manually insert all my domains or is there a better way?

It seems that no razor or other online spam checks are performed. Spam scores are always near zero. How do I turn them on?

And how can I virus-check internal mail that does not come from the outside?

Thanks so much for your patience!!!

btisdall
Scalix Star
Scalix Star
Posts: 373
Joined: Tue Nov 22, 2005 12:13 pm
Contact:

Postby btisdall » Fri Jun 02, 2006 5:27 am

interways1 wrote:That fixed it. Do I have to manually insert all my domains or is there a better way?


Take a look at /usr/share/doc/amavisd-new-version/amavisd.conf-sample for your options there. Subdomains are easy.

It seems that no razor or other online spam checks are performed. Spam scores are always near zero. How do I turn them on?


You'll only see info relating to particular checks in the headers if the mail 'hits' any of them (I'm assuming you already have razor, pyzor & dcc installed & configured).

To check how SA is functioning, stop amavis using service/init.d and then as root do:

Code: Select all

amavisd debug-sa


This should tell you what components SA is using (CTRL-C out of that and restart amavis normally when done).

And how can I virus-check internal mail that does not come from the outside?


I confess I don't have an answer for that right now, but I'm sure someone else does.

Thanks so much for your patience!!!


You're welcome.
Last edited by btisdall on Tue Jun 06, 2006 8:05 am, edited 1 time in total.
Ben Tisdall

www.redcircleit.com

London

interways1
Posts: 13
Joined: Wed May 24, 2006 11:02 am

Postby interways1 » Sat Jun 03, 2006 4:30 am

Hi!

Any idea how I can get amavis to bounce or reject a message that is considered spam?

The options are all set correctly, /var/log/mail then states:

"SYSERR(root): savemail: cannot save rejected email anywhere"

Do you have those problems?

Thanks a lot

Chris

interways1
Posts: 13
Joined: Wed May 24, 2006 11:02 am

Postby interways1 » Sat Jun 03, 2006 12:56 pm

Hi!

Fixed the problem/error message, but still no reject is sent. This is important, since I have to let the sender know that the message was not delivered.

Any suggestions?

BTW, thanks again...

btisdall
Scalix Star
Scalix Star
Posts: 373
Joined: Tue Nov 22, 2005 12:13 pm
Contact:

Postby btisdall » Sun Jun 04, 2006 7:34 am

Did you uncomment/define $sa_kill_level_deflt & restart amavisd?
Ben Tisdall

www.redcircleit.com

London

interways1
Posts: 13
Joined: Wed May 24, 2006 11:02 am

Postby interways1 » Mon Jun 05, 2006 8:30 am

Yep, did that. It tries to send the DSN but the DSN itself gets blocked for being spam.

Strange.

btisdall
Scalix Star
Scalix Star
Posts: 373
Joined: Tue Nov 22, 2005 12:13 pm
Contact:

Postby btisdall » Mon Jun 05, 2006 11:00 am

Can you please post the relevant sendmail output.
Ben Tisdall

www.redcircleit.com

London

chris78
Posts: 26
Joined: Tue May 30, 2006 6:12 pm

Postby chris78 » Wed Jun 07, 2006 1:52 pm

Hello,
I have make it like the description in HOWTO. But it doesn't work.. :-(
Sendmail will now send the email back to the computer from I have send the message He use as relay the IP from my workstation.
If I stop the Amavis-daemon and use the sendmail.cf without the config for Amavis than sendmail use the right relay... The sending Email hang in the Outbox..

Whats wrong..?


Code: Select all

Jun  7 19:39:54 server amavis[4149]: Found decoder for    .lha  at /usr/bin/lha
Jun  7 19:39:54 server amavis[4149]: Found decoder for    .cab  at /usr/bin/cabextract
Jun  7 19:39:54 server amavis[4149]: No decoder for       .tnef tried: tnef
Jun  7 19:39:54 server amavis[4149]: Internal decoder for .tnef
Jun  7 19:39:54 server amavis[4149]: Found decoder for    .exe  at /usr/bin/unrar; /usr/bin/lha; /usr/bin/unarj
Jun  7 19:39:54 server amavis[4149]: Found primary av scanner H+BEDV AntiVir or the (old) CentralCommand Vexira Antivirus at /usr/bin/antivir
Jun  7 19:39:54 server amavis[4149]: Creating db in /var/spool/amavis/db/;BerkeleyDB 0.26, libdb 4.3
Jun  7 19:39:58 server amavis[4154]: starting.  /usr/sbin/amavisd at server.ath.cx amavisd-new-2.3.3 (20050822), Unicode aware, LC_CTYPE=de_DE.UTF-8,LANG=POSIX
Jun  7 19:39:58 server amavis[4154]: Perl version               5.008007
Jun  7 19:40:12 server sendmail[4155]: k57He9rE004155: from=<chris@server.ath.cx>, size=345, class=0, nrcpts=1, msgid=<200606071939.43746.chris@server.ath.cx>, proto=ESMTP, daemon=MTA, relay=[192.168.178.88]

btisdall
Scalix Star
Scalix Star
Posts: 373
Joined: Tue Nov 22, 2005 12:13 pm
Contact:

Postby btisdall » Wed Jun 07, 2006 2:14 pm

Hi Chris, it looks as if you haven't posted the entire relevant sendmail output.
Ben Tisdall

www.redcircleit.com

London

chris78
Posts: 26
Joined: Tue May 30, 2006 6:12 pm

Postby chris78 » Wed Jun 07, 2006 4:33 pm

how can I find the relevant log..?
I have post from
tail -f /var/log/mail

btisdall
Scalix Star
Scalix Star
Posts: 373
Joined: Tue Nov 22, 2005 12:13 pm
Contact:

Postby btisdall » Wed Jun 07, 2006 4:49 pm

I think you just need to include more lines beyond what you've already posted, but you could also check /var/log/mail.err (plus /var/log/mail.warn & /var/log/mail.info for luck). If sendmail isn't accepting mail for delivery it'll be logged in one of those or the file you've already tried.
Ben Tisdall

www.redcircleit.com

London


Return to “Scalix Server”



Who is online

Users browsing this forum: Google [Bot] and 5 guests