Como evitar que o /var/log/mail.log inflacione?

2

Estou usando o Ubuntu 11.10 (onírico).

/var/log/mail continua a inflar no meu servidor:

Aug  5 10:48:25 domU-12-31-39-0B-C4-54 sm-msp-queue[13360]: q71He1xw027248: to=postmaster, delay=3+17:03:10, xdelay=00:00:00, mailer=relay, pri=23074446, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug  5 10:48:25 domU-12-31-39-0B-C4-54 sm-msp-queue[13308]: q717K1wk024979: to=postmaster, delay=4+03:23:18, xdelay=00:00:00, mailer=relay, pri=25779463, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Aug  5 10:48:25 domU-12-31-39-0B-C4-54 sm-msp-queue[13360]: q71He1xx027248: to=postmaster, delay=3+17:03:10, xdelay=00:00:00, mailer=relay, pri=23075343, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
...

Eu não estou usando o sendmail diretamente e preferiria desativá-lo.

Parece que o sendmail não pode começar:

$ sudo /etc/init.d/sendmail start 
* Starting Mail Transport Agent (MTA) sendmail
451 4.0.0 /etc/mail/sendmail.cf: line 100: fileclass: 
cannot open '/etc/mail/local-host-names': Group writable directory

Eu acredito que tenho as permissões corretas:

$ ls -ld /etc/mail/local-host-names
-rw-r--r-- 1 root root 52 2011-12-04 06:58 /etc/mail/local-host-names

Mas ... as permissões da pasta pai estão bem?

g$ ls -ld / /etc /etc/mail
drwxr-xr-x 23 root  root  4096 2012-05-23 08:38 /
drwxrwxr-x 99 root  root  4096 2012-08-05 07:29 /etc
drwxr-sr-x  7 smmta smmsp 4096 2011-12-04 06:58 /etc/mail

Eu gostaria de corrigir o sendmail ou desativá-lo. Eu tentei:

$ sudo update-rc.d sendmail disable
update-rc.d: warning: sendmail start runlevel arguments (none) do not match LSB Default-Start values (2 3 4 5)
update-rc.d: warning: sendmail stop runlevel arguments (none) do not match LSB Default-Stop values (1)
 Disabling system startup links for /etc/init.d/sendmail ...
 Removing any system startup links for /etc/init.d/sendmail ...
   /etc/rc0.d/K19sendmail
   /etc/rc1.d/K19sendmail
   /etc/rc2.d/K79sendmail
   /etc/rc3.d/K79sendmail
   /etc/rc4.d/K79sendmail
   /etc/rc5.d/K79sendmail
   /etc/rc6.d/K19sendmail
 Adding system startup for /etc/init.d/sendmail ...
   /etc/rc0.d/K19sendmail -> ../init.d/sendmail
   /etc/rc1.d/K19sendmail -> ../init.d/sendmail
   /etc/rc6.d/K19sendmail -> ../init.d/sendmail
   /etc/rc2.d/K79sendmail -> ../init.d/sendmail
   /etc/rc3.d/K79sendmail -> ../init.d/sendmail
   /etc/rc4.d/K79sendmail -> ../init.d/sendmail
   /etc/rc5.d/K79sendmail -> ../init.d/sendmail

mas meu mail.log ainda recebe os mesmos erros.

Links adicionais que eu analisei:

por ripper234 05.08.2012 / 12:51

1 resposta

3

Eu acredito que você não tem as permissões certas em / etc. Também não pode ser gravável em grupo. Experimente

sudo chmod g-w /etc

Isso ajuda?

    
por 05.08.2012 / 16:02