如何禁用Centos中的本地邮件传送?

我想在我的Centos VPS上禁用本地邮件,因为我有一个Web表单(位于由VPS托pipe的网站上),它将邮件传递到本地邮箱,而不是查看MXlogging将邮件传送到Exchange Server。

我已经看过这个问题Postifx禁用本地交付的一些说明

如果我使用ZPanel,这怎么能实现呢? ZPanel是否以不同的方式处理事情?

有人可以提供解决这个问题的指导吗?

仅供参考,正在使用Postfix(这是由ZPanel自动设置的)。

这里是'postconf -n'

alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases broken_sasl_auth_clients = yes command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 delay_warning_time = 4 disable_vrfy_command = yes header_checks = regexp:/etc/postfix/header_checks html_directory = no inet_interfaces = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = localhost.$mydomain, localhost mydomain = gunston.gwsadmin.info myhostname = gunston.gwsadmin.info mynetworks = all newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.2.2/README_FILES recipient_delimiter = + relay_domains = proxy:mysql:/etc/zpanel/configs/postfix/mysql-relay_domains_maps.cf sample_directory = /usr/share/doc/postfix-2.2.2/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtp_use_tls = no smtpd_client_restrictions = smtpd_data_restrictions = reject_unauth_pipelining smtpd_helo_required = yes smtpd_helo_restrictions = smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetwor qdn_recipient, reject_unknown_recipient_domain smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $myhostname smtpd_sasl_path = private/auth smtpd_sasl_security_options = noanonymous smtpd_sasl_type = dovecot smtpd_sender_restrictions = smtpd_use_tls = no soft_bounce = yes transport_maps = hash:/etc/postfix/transport unknown_local_recipient_reject_code = 550 virtual_alias_maps = proxy:mysql:/etc/zpanel/configs/postfix/mysql-virtual_alias virtual_gid_maps = static:12 virtual_mailbox_base = /var/zpanel/vmail virtual_mailbox_domains = proxy:mysql:/etc/zpanel/configs/postfix/mysql-virtual_ virtual_mailbox_maps = proxy:mysql:/etc/zpanel/configs/postfix/mysql-virtual_mai virtual_minimum_uid = 101 virtual_transport = dovecot virtual_uid_maps = static:101 

用后缀,这是微不足道的。 从mysql表中删除example.com。 有关此表格的更多信息,请参阅参数

 virtual_mailbox_domains = proxy:mysql:/etc/zpanel/configs/postfix/mysql-virtual_ 

免责声明:

  • 这种改变可能会导致zpanel 爆炸停止工作,因为你敢于改变zpanel系统的低级别。
  • 由于zpanel不支持此更改,因此zpanel系统可能抢先覆盖您的更改。 所以你不得不重新申请它。
  • EEAA重新发表评论 : 无论如何,认真。 摆脱Zpanel。 这只会让你的生活更加艰难