Article 4R1ME Postfix "relayhost" configuration

Postfix "relayhost" configuration

by
jessie1
from LinuxQuestions.org on (#4R1ME)
Hello

I have just installed a postfix server into a virtual machine on my PC but I can not configure it to send emails to my work email through the company mail server.

Installed OS: Oracle linux 8.0
Vm: Vmware Esxi 6.5, running on a windows PC
Postfix-3.3.1-8.el8.x86_64

Initially I received the error below when I attempted to send a mail;

send-mail: warning: /etc/postfix/main.cf, line 340: overriding earlier entry: relayhost=[****.ne.jp.]:465
postdrop: warning: /etc/postfix/main.cf, line 340: overriding earlier entry: relayhost=[****.ne.jp.]:465

After editing the configuration file,when I run the mailq command after attempting to send a mail, I see the following error message;

5F63D30A7F30 430 Tue Sep 24 11:58:59 root@localdomain.com
(unknown mail transport error).

I am confused because I am thinking the above error has to do with email aliases but I have not set any.

I have read that I need to correctly edit the "relayhost" portion of the main.cf file but I dont know what I am doing wrong as I am new to this.

Any help in plain English with regards to this problem will be appreciated.

Thank you in advance.latest?d=yIl2AUoC8zA latest?i=wjPpDazCWj0:ekcb5AHdn-0:F7zBnMy latest?i=wjPpDazCWj0:ekcb5AHdn-0:V_sGLiP latest?d=qj6IDK7rITs latest?i=wjPpDazCWj0:ekcb5AHdn-0:gIN9vFwwjPpDazCWj0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments