[FUG-BR] Qmail + smtpd

Alvaro Resurreição alvaro em bsd.com.br
Segunda Julho 14 19:34:55 BRT 2008


2008/7/14 Alvaro Resurreição <alvaro em bsd.com.br>:

>
> 2008/7/14 Alexandre Biancalana <biancalana em gmail.com>:
>
> On 7/14/08, Alvaro Resurreição <alvaro em bsd.com.br> wrote:
>> > Alessandro analisando seu run e tcp verifiquei que estão bem parecidos
>> com o
>> >  meu, a unica diiferença é q vc esta usando o ssl, isso mesmo?
>> >
>> >  Analisando o meu log eu reconfigurei o hosts, rc.conf e inited e não
>> esta
>> >  mais aparecendo o erro
>> >
>> >
>> >  2008-07-14 03:01:04.069245500 delivery 4: failure:
>> >  Sorry,_I_couldn't_find_any_ host_named_email.perky.com.br._(#5.1.2)/
>> >
>> >
>> > Agora os logs estão assim
>> >
>> >
>> >  email# tail -f /var/service/smtpd/log/main/current
>> >
>> > @40000000487b7b731a2fc604 tcpserver: usage: tcpserver [
>> -1UXpPhHrRoOdDqQsSv
>> >
>> > ] [ -c limit ] [ -C [address[/len]:]limit ] [ -e name=var ] [ -x
>> rules.cdb ]
>> >  [ -B banner ] [ -g gid ] [ -u uid ] [ -b backlog ] [ -l localname ] [
>> -t
>> >  timeout ] [ -n certfile ] host port program
>> >
>> > @40000000487b7b741b6feef4 tcpserver: usage: tcpserver [
>> -1UXpPhHrRoOdDqQsSv
>> >
>> > ] [ -c limit ] [ -C [address[/len]:]limit ] [ -e name=var ] [ -x
>> rules.cdb ]
>> >  [ -B banner ] [ -g gid ] [ -u uid ] [ -b backlog ] [ -l localname ] [
>> -t
>> >  timeout ] [ -n certfile ] host port program
>> >
>> > @40000000487b7b751cb17f44 tcpserver: usage: tcpserver [
>> -1UXpPhHrRoOdDqQsSv
>> >
>> > ] [ -c limit ] [ -C [address[/len]:]limit ] [ -e name=var ] [ -x
>> rules.cdb ]
>> >  [ -B banner ] [ -g gid ] [ -u uid ] [ -b backlog ] [ -l localname ] [
>> -t
>> >  timeout ] [ -n certfile ] host port program
>> >
>> >
>> > email# tail -f /var/log/qmail/current | tai64nlocal
>> >
>> > 2008-07-14 09:57:14.339897500 status: local 0/10 remote 0/20
>> >  2008-07-14 10:05:56.238673500 status: local 0/10 remote 0/20
>> >  2008-07-14 10:06:42.270831500 status: local 0/10 remote 0/20
>> >  2008-07-14 10:19:46.598751500 status: local 0/10 remote 0/20
>> >  2008-07-14 11:28:48.940723500 status: local 0/10 remote 0/20
>> >  2008-07-14 11:30:46.144389500 status: local 0/10 remote 0/20
>> >  2008-07-14 12:10:24.417096500 status: local 0/10 remote 0/20
>> >  2008-07-14 12:10:32.646067500 status: local 0/10 remote 0/20
>> >  2008-07-14 13:04:21.724548500 status: local 0/10 remote 0/20
>> >  2008-07-14 13:08:48.829650500 status: local 0/10 remote 0/20
>>
>> Vamos separar as coisas o qmail tem varios processos um para cada
>> finalidade, no seu caso oq não está funcionando é o qmail-smtpd, vamos
>> focar nele.
>>
>> Pra facilitar o debug, edita o arquivo /var/service/smtpd/run e antes
>> do "exec" coloca um "echo"
>>
>> Executa ele e manda o resultado.
>
>
> Segue o resultado
>
> email# /var/qmail/service/smtpd/run
> envdir ./env sh -c
>     case "$REMOTENAME" in h) H=;; p) H=p;; *) H=H;; esac
>     case "$REMOTEINFO" in r) R=;; [0-9]*) R="t$REMOTEINFO";; *) R=R;; esac
>     exec \
>     envuidgid qmaild \
>     softlimit ${DATALIMIT+"-d$DATALIMIT"} \
>     /usr/local/bin/tcpserver \
>         -vDU"$H$R" \
>         ${LOCALNAME+"-l$LOCALNAME"} \
>         ${BACKLOG+"-b$BACKLOG"} \
>         ${CONCURRENCY+"-c$CONCURRENCY"} \
>         -xtcp.cdb \
>         -- "${IP-0}" "${PORT-25}" \
>      /var/qmail/bin/qmail-smtpd
>
> email#
>
> Att
>

Existia duas linhas comentadas no meu run, depois que eu removi, já mudou a
cara do log, segue

email# tail -f /var/service/smtpd/log/main/current
@40000000487bd3a12c8d3854 tcpserver: fatal: unable to bind: address already
used
@40000000487bd3a22dbede6c tcpserver: fatal: unable to bind: address already
used
@40000000487bd3a32eef404c tcpserver: fatal: unable to bind: address already
used
@40000000487bd3a43020daac tcpserver: fatal: unable to bind: address already
used
@40000000487bd3a53150716c tcpserver: fatal: unable to bind: address already
used
@40000000487bd3a632821784 tcpserver: fatal: unable to bind: address already
used
@40000000487bd3a733b27964 tcpserver: fatal: unable to bind: address already
used
@40000000487bd3a834e3d92c tcpserver: fatal: unable to bind: address already
used
@40000000487bd3a93613d57c tcpserver: fatal: unable to bind: address already
used
@40000000487bd3aa3745ae5c tcpserver: fatal: unable to bind: address already
used


Mais detalhes sobre a lista de discussão freebsd