> From: Kai 'wusel' Siering <[email protected]>
> > Then a different check:
>
> I don't speak smail3^Hexim anymore, but I assume it's somewhat similar to
>
> telnet $mx 25
> if 2xx send quit
> if 5xx set fuckem=1 && send quit || ignore errors
> if $fuckem<1 die in_peace else wreck havoc
>
> ?
I don't know why, but Exim's ${readsocket works without the "quit":
[root@lena ~]# time exim -be '${readsocket{inet:mx00.t-online.de:25}{}{2s}}!'
220-mailin78.mgt.mul.t-online.de T-Online ESMTP receiver fssmtpd ready.
220 T-Online ESMTP receiver ready.
!
real 0m0.052s
user 0m0.024s
sys 0m0.001s
[root@lena ~]# telnet mx00.t-online.de 25
Trying 194.25.134.8...
Connected to mx00.t-online.de.
Escape character is '^]'.
220-mailin82.mgt.mul.t-online.de T-Online ESMTP receiver fssmtpd ready.
220 T-Online ESMTP receiver ready.
quit
221-2.0.0 mailin82.mgt.mul.t-online.de closing.
221 2.0.0 Closing.
Connection closed by foreign host.
[root@lena ~]#
_______________________________________________
mailop mailing list
[email protected]
https://list.mailop.org/listinfo/mailop