Closed k2patel closed 7 years ago
os.uname()[1] does not always resolve to FQDN
Which cause following error. Using socket.getfqdn should fix this.
Mar 7 02:32:36 postfix/smtpd[21639]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 504 5.5.2 root@<hostname>: Sender address rejected: need fully-qualified address; from=root@<hostname> to=<user>@<domain> proto=ESMTP helo=<>
os.uname()[1] does not always resolve to FQDN
Which cause following error. Using socket.getfqdn should fix this.
Mar 7 02:32:36 postfix/smtpd[21639]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 504 5.5.2 root@<hostname>: Sender address rejected: need fully-qualified address; from=root@<hostname> to=<user>@<domain> proto=ESMTP helo=<>