Configuring DNS and postfix on Ubuntu

Опубликовано: 08 Октябрь 2024
на канале: kdguntu
6,785
8

Sample configuration of bind9 dns server and postfix mailserver on Ubuntu:

Test script:
#!/bin/bash
Testscript smtp mailserver
Please pipe output to telnet
e.g. ./smtptest.sh | telnet

from="[email protected]"
to="[email protected]"
host="mail.celis.be"
myhost="kdguntu.celis.be"
port=25
time=1

echo open $host $port
sleep $time
echo helo kdguntu.celis.be
sleep $time
echo mail from:$from
sleep $time
echo rcpt to:$to
sleep $time
echo data
sleep $time
echo subject: test on `date`
echo Hello, test on `date`
echo .
echo quit