I can't send mail via postfix

Asked 1 years ago, Updated 1 years ago, 99 views

I log in with SSH, use the mail function, and send an email to root, but I can't get an email.
The same goes for e-mails to the outside world.

MTA uses postfix and deovecot.

After checking /var/log/maillog/,

[root@localhost~]#cat/var/log/maillog  
Jan 31 23:35:50 localhost postfix [2002]:dict_eval:const no  
Jan 31 23:35:50 localhost postfix/postfix-script [2007]: error: unknown command: ''  
Jan 31 23:35:50 localhost postfix/postfix-script [2008]: fatal:usage:postfix start (or stop, reload, abort, flush, check, status, set-permissions, upgrade-configuration)  
Jan 31 23:39:36 localhost postfix/postfix-script [2110]: starting the Postfix mail system  
Jan 31 23:39:36 localhost postfix/master [2111]: fatal: /etc/postfix/master.cf:line 10:missing "transport type" field

said he.
It says fatal and transport, but what do you mean?In addition, we installed a new mail server and referred to http://morizyun.github.io/blog/postfix-centos-sakura-vps-aws/.

postfix

2022-09-30 19:32

1 Answers

The log line feed position does not seem to have been successfully transcribed, making it quite difficult to see, but this line:

Jan 31 23:39:36 localhost postfix/master [2111]:
fatal: /etc/postfix/master.cf:line 10:missing "transport type" field

shows the つtransport type が field missing いる in line 10: on master.cf, one of the postfix configuration files.Therefore, the postfix server may not have started properly.

When you edit master.cf, you may have rewritten it to a strange point by mistake.

 # = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = < = ode c p # > = = < = = = = = = = = = = = 
# service type private unpriv chroot wakeup maxproc command + args
#  name(yes)(yes)(yes)(never)(100)
#=  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  = 
smtpinet n-y-smtpd
pickup defin-n 601 pickup
cleanup unix n-n-0 cleanup
qmgr Fifon-n 3001qmgr
rewrite unix-n-trivial-rewrite
bounce unix -n - 0 bounce
defer unix--n-0 bounce
flush unix n-n 1000?0 flush
...

A typical master.cf file is a file similar to the one above, and the "transport type" field is a second field with inet, fifo, unix, and so on.Check to see what happens around the 10th line where the error was reported.Note that the beginning of the line in the postfix configuration file is blank or not.


2022-09-30 19:32

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.