Testschleife Secondary Mailserver

Florian Lohoff flo at rfc822.org
Thu Mar 21 14:14:04 CET 2002


On Thu, Mar 21, 2002 at 01:58:04PM +0100, Peter Lohmann wrote:
> Hallo Zusammen!
> 
> Ich suche nach einer Möglichkeit automatisiert zu testen, ob mein
> Secondary-Mailserver korrekt konfiguriert ist. Sprich Mails für meinen
> Host annimmt und mir dann später zustellt. Das ganze sollte auch für mehr
> als eine Domain klappen. Gibts da was fertiges, oder muß ich mir was
> stricken?

Brauchst du mehr als netcat ?

for i in domain.a domain.b; do

cat <<EOF
ehlo system
Mail From: <flo at owl.de>
Rcpt To: <flo@@DOMAIN@>
data
test
.
quit
EOF | sed -e "s/@DOMAIN@/$i/" | nc secon.dary.mx -p 25

done

Oder halt so aehnlich - War mal eben so runtergeschrieben ... Wenn du
mail bekommst funktioniert :)

Flo
-- 
Florian Lohoff                  flo at rfc822.org             +49-5201-669912
Nine nineth on september the 9th              Welcome to the new billenium
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20020321/47ede68d/attachment.sig>


More information about the Linux mailing list