[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[msmtp-users] [SOLVED] Re: [msmtpq] mail [...] from queue ; couldn't be sent - host not connected
If I change:
if /bin/ping -qnc 1 -w 2 64.233.183.147 &> /dev/null ; then
to:
if /bin/ping -qnc 1 -w 2 8.8.8.8 &> /dev/null ; then
I got:
marcelo@...327...:~$ msmtpq -r
mail [ 2013-01-11-13.40.19 ] from queue ; send was successful ;
purged from queue
mail [ 2013-01-11-16.19.03 ] from queue ; send was successful ;
purged from queue
mail [ 2013-01-13-12.32.51 ] from queue ; send was successful ;
purged from queue
mail [ 2013-01-13-13.01.26 ] from queue ; send was successful ;
purged from queue
marcelo@...327...:~$
Yep!
Marcelo
2013/1/31 Marcelo Laia <marcelolaia@...20...>:
> Hi Martin,
>
> I found this line in the msmtpq (near line 183) and also in msmtpQ
> (near line 166):
>
> if /bin/ping -qnc 1 -w 2 64.233.183.147 &> /dev/null ; then
>
> If I run it on a terminal, I got:
>
> marcelo@...327...:~$ /bin/ping -qnc 1 -w 2 64.233.183.147
> PING 64.233.183.147 (64.233.183.147) 56(84) bytes of data.
>
> --- 64.233.183.147 ping statistics ---
> 2 packets transmitted, 0 received, 100% packet loss, time 1008ms
>
> marcelo@...327...:~$
>
> I think there some problem here, because I wouldn’t receive anyone packet!
>
> But, if I ping to 8.8.8.8 I receive:
>
> marcelo@...327...:~$ /bin/ping -qnc 1 -w 2 8.8.8.8
> PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
>
> --- 8.8.8.8 ping statistics ---
> 1 packets transmitted, 1 received, 0% packet loss, time 0ms
> rtt min/avg/max/mdev = 32.952/32.952/32.952/0.000 ms
> marcelo@...327...:~$
>
> Marcelo
--
O__ --- Marcelo Luiz de Laia Rodovia MGT 367, Km 583
c/ /' _ -- Dep. de Engenharia Florestal nº 5000, Alto da Jacuba
(*) \ (*) - UFVJM, Diamantina, MG, Brasil Ph: (+55) 38 9985-5078
~~~~~~- (www.ufvjm.edu.br/floresta) FAX: (+55) 38 3532-1200
^^^^^^^^^^- Linux user number 487797 CEP: 39.100-000 - Brazil