postfix problem on CentOS 7.5 : relay not permitted

Issues related to applications and software problems
GioMBG
Posts: 59
Joined: 2012/02/27 00:28:14
Location: Conthey Suisse
Contact:

Re: postfix problem on CentOS 7.5 : relay not permitted

Post by GioMBG » 2018/08/13 16:15:51

hi Trevor,
thx
You would need to adjust the mydestination = line in /etc/postfix/main.cf to allow mails to other domains to be accepted.
in postfix basics :
IMPORTANT: If your machine is a mail server for its entire domain, you must list $mydomain as well.
Example 1: default setting.
/etc/postfix/main.cf:
mydestination = $myhostname localhost.$mydomain localhost
Example 2: domain-wide mail server.
/etc/postfix/main.cf:
mydestination = $myhostname localhost.$mydomain localhost $mydomain
Example 3: host with multiple DNS A records.
/etc/postfix/main.cf:
mydestination = $myhostname localhost.$mydomain localhost
www.$mydomain ftp.$mydomain

Caution: in order to avoid mail delivery loops, you must list all hostnames of the machine, including $myhostname, and localhost.$mydomain.
which you suggest ?
with the first :

Code: Select all

[root@adamus postfix]# mail -s "Test Subject" gio@server.com < /dev/null
Null message body; hope that's ok
[root@adamus postfix]# send-mail: RCPT TO:<gio@server.com> (550 relay not permitted)
thanks again
Gio

GioMBG
Posts: 59
Joined: 2012/02/27 00:28:14
Location: Conthey Suisse
Contact:

Re: postfix problem on CentOS 7.5 : relay not permitted

Post by GioMBG » 2019/01/20 14:44:12

Hi All,
after years that I can't relay I want to opt to reset.
PLS let me know what You would do to reset postfix and all possible affected programs and restart everything from zero.
thanks

Post Reply