[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: amavis + postfix + oav no debian



Ola denovo Otavio e pessoal da lista,

Antes de tudo, valeu pela boa vontade de me ajudar. =]

Entao fiz mais testes, reinstalei tudo e continua com o mesmo problema, reli
a documentacao postfix+amavis e nada. :/

Continuo mandando arquivos textos sem problema. E anexos com o problema que
eu descrevi.

Eu vi o maillog e continua gerando:

May 24 12:20:58 lnx postfix/smtpd[1894]: connect from unknown[201.201.1.188]
May 24 12:20:58 lnx postfix/smtpd[1894]: D04FE3005B:
client=unknown[201.201.1.188]
May 24 12:20:59 lnx postfix/smtpd[1894]: warning: valid_hostname: misplaced
hyphen: 188.1.201.201.relays.mail-
May 24 12:20:59 lnx postfix/cleanup[1895]: D04FE3005B:
message-id=<000901c20334$42dbd0c0$0297a8c0@freetest.com.br>
May 24 12:21:00 lnx postfix/qmgr[1702]: D04FE3005B:
from=<zgrp@freetest.com.br>, size=220081 (queue active)
May 24 12:21:00 lnx postfix/smtpd[1894]: disconnect from
unknown[201.201.1.188]
May 24 12:21:02 lnx amavis[1898]: starting.  amavis perl-11 Fri May 24
11:01:31 EST 2002
May 24 12:21:02 lnx amavis[1898]: do_exit:1158 - ending execution with 75
May 24 12:21:02 lnx postfix/pipe[1897]: D04FE3005B:
to=<zgrp@freetest.com.br>, relay=vscan, delay=4, status=deferred (temporary
failure)


Dando um ps auxww|grep postfix na maquina mostra:

root      1667  0.0  1.4  1552  684 ?        S    12:04   0:00
/usr/lib/postfix/master
postfix   1668  0.0  1.5  1576  728 ?        S    12:04   0:00 pickup -l -t
fifo
postfix   1669  0.0  1.7  1668  820 ?        S    12:04   0:00 qmgr -l -t
fifo -u
root      1700  0.0  1.4  1552  692 ?        S    12:04   0:00
/usr/lib/postfix/master
postfix   1701  0.0  1.3  1540  664 ?        S    12:04   0:00 pickup -l -t
fifo
postfix   1702  0.0  1.7  1676  828 ?        S    12:04   0:00 qmgr -l -t
fifo -u
postfix   1703  0.0  1.5  1636  744 ?        S    12:04   0:00
trivial-rewrite -n rewrite -t unix -u
postfix   1671  0.0  1.5  1636  744 ?        S    12:04   0:00
trivial-rewrite -n rewrite -t unix -u
postfix   1731  0.1  1.9  1728  908 ?        S    12:06   0:00 smtpd -n smtp
-tinet -u
postfix   1732  0.2  1.8  1704  872 ?        S    12:06   0:00 cleanup -t
unix -u
postfix   1733  0.1  1.5  1576  724 ?        S    12:06   0:00 pipe -n vscan
-t unix user=vscan argv=/usr/sbin/amavis -f ${sender} ${recipient}
postfix   1741  0.0  1.8  1692  868 ?        S    12:06   0:00 cleanup -t
unix -u
postfix   1743  0.0  1.8  2896  888 ?        S    12:06   0:00 local -t unix
postfix   1755  0.2  1.6  1644  764 ?        S    12:07   0:00 bounce -n
defer -t unix -u


E no momento que eu anexo arquivos binarios, fazendo um ps auxww|grep amavis
eu tenho:

postfix   1501  1.1  1.4  1564  684 ?        S    11:53   0:00 pipe -n vscan
-t unix user=vscan argv=/usr/sbin/amavis -f ${sender} ${recipient}
vscan     1496  0.6  1.1  2612  532 ?        D    11:53   0:00 perl -T
/usr/sbin/amavis -f zgrp@freetest.com.br zgrp@hadrion.com.br

Esta normal neh ??

Eu passei a fazer o mais simples possivel, isntalando com usuario ja chamado
vscan tmb.

Eu estou tentando fazer o amavis checar incoming e outgoing, baseado nesse
proprio texto:

/oav/amavis/amavis-perl-11/README.postfix

Na sessao:

Scanning incoming/outgoing and relayed mail
===========================================

Eu ja li esse texto um monte de vez, ja fiz tmb a configuracao mais simples
so incomig e da o mesmo erro de (temporary failure). :/

Quando eu tava reinstalando o amavis eu tentei instalar com user vscan e vi
que ele nao deixou. A isntalacao deve ser feita com root mesmo neh ?? :)

Eu vou colar aqui minhas permissoes em alguns arquivos e diretorios que acho
q sao importantes.. quem sabe sao eles q estao errados...

ls -la /usr/sbin/amavis -rwxr-xr-x   1 root     root        30887 May 24
11:04 /usr/sbin/amavis

ls -la /var/ |grep virusma drwx------   2 vscan    root           35 May 24
11:48 virusmails

ls -la /var/ |grep amavis drwx------  22 vscan    root          655 May 24
12:29 amavis

Sera q tem algo errado com essas perms ??

ps.: Respondendo usa pergunta, eu estou usando o debain potato sim. :)) E
estou usando o pacote amavis / SD do proprio site deles. =]

Como vc disse vou colar aqui meu main.cf e master.cf! :)

main.cf e mastr.cf da primeira instance:

alias_maps = hash:/etc/postfix/aliases
allow_percent_hack = no
body_checks = regexp:/etc/postfix/body_checks
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 10
default_privs = nobody
default_transport = smtp
inet_interfaces = all
local_destination_concurrency_limit = 2
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail -a $DOMAIN -d $LOGNAME
maps_rbl_domains = blackholes.mail-abuse.org dialups.mail-abuse.org
relays.mail-
mydestination = $myhostname, localhost.$mydomain, $mydomain,mail.$mydomain,
www.
$mydomain, ftp.$mydomain
mydomain = freetest.com.br
myhostname = lnx.freetest.com.br
myorigin = $mydomain
program_directory = /usr/libexec/postfix
queue_directory = /var/spool/postfix
relay_domains = $mydestination
smtpd_banner = freetest Mail Server
smtpd_client_restrictions = reject_maps_rbl
swap_bangpath = no

E no master.cf da primeira instance eu tenho:

#smtp     inet  n       -       n       -       -       smtpd
pickup    fifo  n       n       n       60      1       pickup
cleanup   unix  -       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
smtp      unix  -       -       n       -       -       smtp
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
local     unix  -       n       n       -       -       local
cyrus     unix  -       n       n       -       -       pipe
flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
uucp      unix  -       n       n       -       -       pipe
flags=F user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
flags=F. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient



Ja no main.cf fa segunda instance eu tenho:


alias_maps = hash:/etc/postfix/aliases
allow_percent_hack = no
body_checks = regexp:/etc/postfix/body_checks
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 10
default_privs = nobody
default_transport = vscan
inet_interfaces = all
local_destination_concurrency_limit = 2
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail -a $DOMAIN -d $LOGNAME
maps_rbl_domains = blackholes.mail-abuse.org dialups.mail-abuse.org
relays.mail-
mydestination =
transport_maps =
mydomain = freetest.com.br
myhostname = lnx.freetest.com.br
myorigin = $mydomain
program_directory = /usr/libexec/postfix
queue_directory = /var/spool/postfix.smtp
relay_domains = $mydestination
smtpd_banner = freetest Mail Server
smtpd_client_restrictions = reject_maps_rbl
swap_bangpath = no

E finalizando o master.cf da segunda instance esta:

vscan     unix  -       n       n       -       -       pipe user=vscan
argv=/usr/sbin/amavis -f ${sender} ${recipient}
smtp      inet  n       -       n       -       -       smtpd
pickup    fifo  n       n       n       60      1       pickup
cleanup   unix  -       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
smtp      unix  -       -       n       -       -       smtp
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
local     unix  -       n       n       -       -       local
cyrus     unix  -       n       n       -       -       pipe
flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
uucp      unix  -       n       n       -       -       pipe
flags=F user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
flags=F. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient


Achou algo errado ?? (espero q tenha achado... hehehe).

ps.: Alias, vc poderia me mandar seus main.cf e master.cf pra eu ver?

Muito Obrigado mesmo pela ajuda e por em aguentar.
hehehe

t+

[]'s

________________________________________________
This mail was sent by HadrionWebMail 1.0


-- 
To UNSUBSCRIBE, email to debian-user-portuguese-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: