mailbase will help you maintain sane permissions

Hi all !

New mailbase version (net-mail/mailbase-0.00-r9 ~arch) will not change your /var/spool/mail/ permissions anymore.

Anyway since some net-mail devs think that the only right permissions in /var/spool/mail/ are 0775. If you set something different, mailbase will not overwrite them, but it will show you a nice warning:

  * Your /var/spool/mail/ directory permissions differ from
  *  those which mailbase set when you first installed it (0775).
  *  If you did not change them on purpose, consider running:
  *
       chmod 0775 /var/spool/mail/

Think that we have good reasons to think 1777 is harmful… do not take the easy way by setting 1777 on /var/spool/mail/; better fix your MTA or switch to Maildir/ (the latter is a much better idea by the way).

Cheers,
Ferdy

mailer-config is on the way

As slarti announced a few days ago, mailer-config is on its way to ~arch.

We have commited several packages using the new scheme. This is a package.mask excerpt:

# mask these until the new mailwrapper/mailer-config scheme is ready
# it is secure to unmask them to test
net-mail/mailer-config
=net-mail/mailwrapper-0.2.1-r1
=mail-mta/nbsmtp-0.98-r1
=mail-mta/msmtp-1.4.0-r1
=mail-mta/ssmtp-2.61-r1
=mail-mta/esmtp-0.5.0-r2

It is safe to unmask them to start testing. The *big* mailers to come soon; I’m currently working on postfix and I’ll probably have it by tonight or tomorrow.

A few ‘shots’ to show it working:

posidon root # mailer-config -l
[1] default *
[2] esmtp-0.5.0
[3] nbsmtp-0.98
[4] ssmtp-2.61
posidon root # mailer-config -s 2
 * New default profile is: esmtp-0.5.0
posidon root # mailq
Mail queue is empty
posidon root # mailer-config -s 3
 * New default profile is: nbsmtp-0.98
posidon root # mailq
Showing queued mails in /root/.nbsmtp/.queue:

posidon root # mailer-config -s 4
 * New default profile is: ssmtp-2.61
posidon root # mailq
mailq: Mail queue is empty
posidon root # mailer-config -s 3
 * New default profile is: nbsmtp-0.98
posidon root # mailer-config -l  
[1] default
[2] esmtp-0.5.0
[3] nbsmtp-0.98 *
[4] ssmtp-2.61
posidon root # 

As you can see, three completely different behaviors of mailq, each one depending on which mailer profile you are using. This is great stuff ! We would like to hear your opinion about it.

Cheers,
Ferdy

Getting rid of virus / spam on toucan with maildrop

Hi !

All of you suffering from a ‘virus attack’ on your g.o accounts and not using an insane mail filtering engine might like this.

in .mailfilter:

exception {
        xfilter "/usr/bin/spamc"
        xfilter "/usr/bin/clamassassin"
}

if ( /^X-Spam-Status: .*Yes,/ )
{
        to ".maildir/.spam"
}

if ( /^X-Virus-Status: .*Yes/ )
{
        to "/dev/null"
}

in .forward:

|/usr/bin/maildrop -d ferdy

Thanks infra for letting us use clamassassin… I desperately needed it. Now my INBOX is much cleaner.

Cheers,
Ferdy