This shows you the differences between two versions of the page.
linux:linux_postfix_client [2021/01/01 21:25] 127.0.0.1 external edit |
linux:linux_postfix_client [2022/07/28 15:49] (current) manu |
||
---|---|---|---|
Line 3: | Line 3: | ||
http://www.certdepot.net/rhel7-configure-central-mail-server/ | http://www.certdepot.net/rhel7-configure-central-mail-server/ | ||
- | Add the following lines in your postfix main config file: | + | Add the following lines in your postfix main config file (for info only relayhost is required, most time): |
<cli prompt='#'> | <cli prompt='#'> | ||
[root@centos7 postfix]# cat /etc/postfix/main.cf | [root@centos7 postfix]# cat /etc/postfix/main.cf | ||
Line 17: | Line 17: | ||
mydestination = $mydomain | mydestination = $mydomain | ||
... | ... | ||
- | relayhost = [smtp.mydomain.org] | + | relayhost = [smtp.mydomain.org]:25 |
... | ... | ||
</cli> | </cli> |