[FUG-BR] [OT] MailScanner não escaneia Postfix
Danilo Egea
daniloegea em yahoo.com.br
Sexta Novembro 14 15:23:04 BRST 2008
Certo, o problema que eu tive foi assim: tinham algumas regras no
SpamAssassin com erro de sintaxe, e o MailScanner ficava em loop
infinito como
vc citou, depois que eu corrigi os erros o MailScanner iniciou
normalmente...
junior at gujao.com wrote:
> Eu não inicio o spamassassin, pq como eu já faço no sendmail, eu deixo pro
> mailscanner chamar ele só quando precisa...
>
>
>
>> Hummmm já tive um problema parecido, no meu caso o spamd nao estava
>> rodando, ai o MailScanner ficava assim
>> até que eu iniciasse ele...
>>
>> Vc iniciou o spamassassin ?
>>
>> junior at gujao.com wrote:
>>
>>> Rodei sim... E ai, quando eu envio a mensagem, me dá só isso:
>>>
>>> Nov 14 13:19:11 vmteste postfix/cleanup[1048]: 805865C35: hold: header
>>> Received: from controller3 (unknown [192.168.1.3])??by vmeste.teste.com
>>> (Postfix) with SMTP id 805865C35??for <junior at testecasa.com>; Fri, 14
>>> Nov
>>> 2008 13:19:11 +0000 (UTC) from unknown[192.168.1.3];
>>> from=<junior at testecasa.com> to=<junior at testecasa.com> proto=SMTP
>>> helo=<controller3>
>>> Nov 14 13:19:11 vmteste postfix/cleanup[1048]: 805865C35:
>>> message-id=<000801c94674$c2371430$0301a8c0 at controller3>
>>> Nov 14 13:19:11 vmteste postfix/smtpd[1044]: disconnect from
>>> unknown[192.168.1.3]
>>>
>>> E outro detalhe, é que o MailScanner tá num looping infinito com essa
>>> mensagem:
>>>
>>> Nov 14 13:19:14 vmteste MailScanner[1046]: Using SpamAssassin results
>>> cache
>>> Nov 14 13:19:16 vmteste MailScanner[1049]: MailScanner E-Mail Virus
>>> Scanner version 4.67.6 starting...
>>> Nov 14 13:19:16 vmteste MailScanner[1049]: Read 814 hostnames from the
>>> phishing whitelist
>>> Nov 14 13:19:16 vmteste MailScanner[1049]: Read 5511 hostnames from the
>>> phishing blacklist
>>> Nov 14 13:19:17 vmteste MailScanner[1049]: SpamAssassin temporary
>>> working
>>> directory is /var/spool/MailScanner/incoming/SpamAssassin-Temp
>>>
>>>
>>>
>>>
>>>
>>>> depois que vc alterou o arquivo header_checks vc rodou o postmap
>>>> /usr/local/etc/postfix/header_checks neh ?
>>>>
>>>> bom, fora isso, as configuracoes estao certas, eh pra funcionar, no
>>>> maillog nao da nada referente ao MailScanner ?
>>>>
>>>>
>>>>
>>>> junior at gujao.com wrote:
>>>>
>>>>
>>>>> Eu adicionei essa linha no main.cf header_checks >
>>>>> regexp:/usr/local/etc/postfix/header_checks, criei o respectivo
>>>>> arquivo
>>>>> e
>>>>> dentro dele coloquei /^Received:/ HOLD e alterei só essas linhas no
>>>>> MailScanner.conf:
>>>>>
>>>>> Run As User = postfix
>>>>> Run As Group = postfix
>>>>> Incoming Queue Dir = /var/spool/postfix/hold
>>>>> Outgoing Queue Dir = /var/spool/postfix/incoming
>>>>> MTA = postfix
>>>>>
>>>>> Essas configurações, eu segui a partir do site oficial do MailScanner
>>>>> em
>>>>> http://www.mailscanner.info/postfix.html
>>>>>
>>>>> Grato,
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Como estao suas configuracoes do MailScanner ?
>>>>>>
>>>>>> envie as linhas que vc alterou por favor...
>>>>>>
>>>>>> abracos...
>>>>>>
>>>>>> junior at gujao.com wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Bom dia,
>>>>>>>
>>>>>>> Estou migrando meu servidor sendmail para um postfix + mysql +
>>>>>>> mailscanner
>>>>>>> + courier... Está tudo funcionando perfeitamente, pop, imap, smtp,
>>>>>>> ele
>>>>>>> envia e recebe as mensagens tudo beleza, mas o unico problema, é que
>>>>>>> a
>>>>>>> mensagem não é verificada pelo mailscanner, o postfix passa ela
>>>>>>> direto
>>>>>>> sem
>>>>>>> tratamento algum. Depois de brigrar um pouco, ele já não passa mais
>>>>>>> a
>>>>>>> mensagem, simp´lesmente coloca em hold e não vai mai s pra canto
>>>>>>> nenhum...
>>>>>>>
>>>>>>> Ai está meu mail.cf :
>>>>>>>
>>>>>>> queue_directory = /var/spool/postfix
>>>>>>> program_directory = /usr/local/sbin
>>>>>>> command_directory = /usr/local/sbin
>>>>>>> daemon_directory = /usr/local/libexec/postfix
>>>>>>> mail_owner = postfix
>>>>>>> default_privs = nobody
>>>>>>> default_transport = smtp
>>>>>>> alias_maps = hash:/usr/local/etc/postfix/aliases
>>>>>>> alias_database = hash:/usr/local/etc/postfix/aliases
>>>>>>> readme_directory = no
>>>>>>> sample_directory = /usr/local/etc/postfix
>>>>>>> sendmail_path = /usr/local/sbin/sendmail
>>>>>>> manpage_directory = /usr/local/man
>>>>>>> newaliases_path = /usr/local/bin/newaliases
>>>>>>> mailq_path = /usr/local/bin/mailq
>>>>>>> smtpd_banner = $myhostname ESMTP "Version not Available"
>>>>>>> disable_vrfy_command = yes
>>>>>>> home_mailbox = Maildir/
>>>>>>> myhostname = vmeste.teste.com
>>>>>>> mydomain = teste.com
>>>>>>> myorigin = $mydomain
>>>>>>> mydestination = $mydomain, $transport_maps
>>>>>>> mynetworks = 127.0.0.0/8 192.168.254.0/24 192.168.1.0/24
>>>>>>> virtual_alias_maps >>>
>>>>>>> mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf
>>>>>>> virtual_mailbox_base = /usr/local/vmail
>>>>>>> virtual_mailbox_maps >
>>>>>>> mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf
>>>>>>> virtual_uid_maps = static:5001
>>>>>>> virtual_gid_maps = static:5001
>>>>>>> transport_maps =
>>>>>>> mysql:/usr/local/etc/postfix/mysql_transport_maps.cf
>>>>>>> virtual_mailbox_limit_inbox = no
>>>>>>> virtual_mailbox_limit_maps >
>>>>>>> mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
>>>>>>> virtual_mailbox_limit_override = yes
>>>>>>> virtual_maildir_extended = yes
>>>>>>> virtual_create_maildirsize = yes
>>>>>>> virtual_mailbox_limit = 100000000
>>>>>>> virtual_maildir_limit_message = Sorry, the user's maildir has
>>>>>>> overdrawn
>>>>>>> his diskspace quota, please try again later.
>>>>>>> virtual_overquota_bounce = yes
>>>>>>> smtpd_sasl_auth_enable = yes
>>>>>>> smtpd_sasl_security_options = noanonymous
>>>>>>> broken_sasl_auth_clients = yes
>>>>>>> smtpd_recipient_restrictions > permit_sasl_authenticated,
>>>>>>> permit_mynetworks,
>>>>>>> check_relay_domains
>>>>>>> fallback_transport = maildrop
>>>>>>> maildrop_destination_recipient_limit = 1
>>>>>>> unknown_local_recipient_reject_code = 450
>>>>>>> html_directory = no
>>>>>>> setgid_group = maildrop
>>>>>>> data_directory = /var/db/postfix
>>>>>>>
>>>>>>> O master.cf:
>>>>>>>
>>>>>>> maildrop unix - n n - - pipe
>>>>>>> flags=DRhu user=maildrop argv=/usr/local/bin/maildrop -w 90 -d
>>>>>>> ${recipient}
>>>>>>> vacation unix - n n - - pipe
>>>>>>> flags=DRhu user=vacation:vacation
>>>>>>> argv=/var/spool/postfix/vacation/vacation.pl -f ${sender} --
>>>>>>> ${recipient}
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> __________________________________________________
>>>>>> Faça ligações para outros computadores com o novo Yahoo! Messenger
>>>>>> http://br.beta.messenger.yahoo.com/
>>>>>> -------------------------
>>>>>> Histórico: http://www.fug.com.br/historico/html/freebsd/
>>>>>> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>>>>>>
>>>>>> --
>>>>>> Esta mensagem foi verificada pelo sistema de antivírus e
>>>>>> acredita-se estar livre de perigo.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>> _______________________________________________________
>>>> Yahoo! Mail - Sempre a melhor opção para você!
>>>> Experimente já e veja as novidades.
>>>> http://br.yahoo.com/mailbeta/tudonovo/
>>>>
>>>>
>>>> -------------------------
>>>> Histórico: http://www.fug.com.br/historico/html/freebsd/
>>>> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>>>>
>>>> --
>>>> Esta mensagem foi verificada pelo sistema de antivírus e
>>>> acredita-se estar livre de perigo.
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>> _______________________________________________________
>> Yahoo! Mail - Sempre a melhor opção para você!
>> Experimente já e veja as novidades.
>> http://br.yahoo.com/mailbeta/tudonovo/
>>
>>
>> -------------------------
>> Histórico: http://www.fug.com.br/historico/html/freebsd/
>> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>>
>> --
>> Esta mensagem foi verificada pelo sistema de antivírus e
>> acredita-se estar livre de perigo.
>>
>>
>>
>
>
>
__________________________________________________
Faça ligações para outros computadores com o novo Yahoo! Messenger
http://br.beta.messenger.yahoo.com/
Mais detalhes sobre a lista de discussão freebsd