|
Use sendmail directly instead of SMTP because the SMTP host could be
unreachable and sendmail just dumps the mail into a spool dir for the
MTA to pick up whenever it is ready. Less error prone.
Look up IP addresses of the target and run MTR to all of them in case
the target has both, an ipv4 and ipv6. This also works for hosts with
more than one A record in which case all IPs will be pinged and added
to the report. Could put a bit of load on the network, but I don't care.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
|