Home computickets does not work aliases in postfix

does not work aliases in postfix

Author

Date

Category

PostFix is ​​configured only to send. And it seems everywhere you advise just to update aliases to send the mail of the local user to the outermost mail, but for some reason it does not work

postconf -n

alias_database = hash: / etc / aliases
alias_maps = hash: / etc / aliases
APPEND_DOT_MYDOMAIN = NO.
BIFF = No.
Config_Directory = / etc / postfix
inet_interfaces = all.
inet_protocols = ipv4.
Local_Recipient_Maps = $ Alias_maps
Mailbox_size_limit = 0.
masquerade_domains = MyDomain.com
MyDestination = Mail.Mydomain.com, localhost.localdomain, localhost
MyDomain = MyDomain.com.
MyHostName = mail.mydomain.com.
MyNetworks = 127.0.0.0/8 [::ffff:127.0.0.0 ]/104 [:: 1] / 128
MyOrigin = / etc / mailname
readme_directory = No.
recipient_delimiter = +.
RelayHost =.
SMTP_TLS_SESSION_CACHE_DATABASE = BTREE: $ {data_directory} / SMTP_SCACHE
SMTPD_BANNER = $ MYHOSTNAME ESMTP $ Mail_name (Debian / GNU)
SMTPD_TLS_CERT_FILE = /etc/ssl/certs/ssl-cert-snakeoil.pem.
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key.
SMTPD_TLS_SESSION_CACHE_DATABASE = BTREE: $ {data_directory} / smtpd_scache
SMTPD_USE_TLS = YES.

Cat / etc / aliases

root: [email protected]

Keep Newaliases

But in the log anyway:

to = & lt; [email protected]>, relay = aspmx.l.google.com [64.233.166.26]: 25,
delay = 0.18, delays = 0.03 / 0/0/07 / 0.09, DSN = 5.1.1, Status = Bounced (Host
aspmx.l.google.com [64.233.166.26] SAID: 550-5.1.1 The Email Account That You
TriED to Reach Does Not Exist. Please Try 550-5.1.1 Double-Checking The
Recipient's Email Address for Typos O 550-5.1.1 Unnecessary Spaces. Learn More
AT 550 5.1.1 https://support.google.com/mail/answer/6596 WD2SI11913770WJC.24 -
GSMTP (in Reply to RCPT to Command))

Answer 1, Authority 100%

myorigin = / etc / mailname

Because of this, you have a postfix incorrectly defines local users and does not use Aliases. (Default: $ MyHostName)

udp

Although it looks like this is a default value for systems based on Debian and it works, although not documented

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions