vmi ilyesmi kellene #!/bin/bash r=$(host -R 3 "myhost.dyndns.org") if [ $? -eq 0 ]; then IP=$(echo $r | cut -d ' ' -f 4) echo "mynetworks = 127.0.0.0/8, $IP/32" >/etc/postfix/mynetworks /etc/init.d/postfix reload fi