thx
in postfix basics :You would need to adjust the mydestination = line in /etc/postfix/main.cf to allow mails to other domains to be accepted.
which you suggest ?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.
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)
Gio