Hello,
I am in the process of configuring a new Postfix and expanding my
knowledge of how it works.
I have the following configuration in /etc/postfix/aliases:
# Person who should get root's mail. Don't receive mail as root!
root: klaus
I have set the following configuration in /etc/postfix/main.cf:
append_at_myorigin = no
(The complete /etc/postfix/main.cf can be found at the end)
If I now create an e-mail locally via (Postfix) sendmail, which is also
stored locally under /var/spool/main/klaus.
My expectation would be that a rewrite to kl...@mydomain.tld takes place
- here kl...@tachtler.net - but there is a rewrite to kl...@mx1.tachtler.net
Where am I making a mistake?
Here are the log:
Jan 11 07:03:06 vml060 postfix/pickup[3987]: 30D1B180084: uid=0 from=<root>
Jan 11 07:03:06 vml060 postfix/cleanup[4004]: 30D1B180084:
message-id=<20250111060306.30d1b180...@mx1.tachtler.net>
Jan 11 07:03:06 vml060 postfix/qmgr[3988]: 30D1B180084: from=<root>,
size=250, nrcpt=1 (queue active)
Jan 11 07:03:06 vml060 postfix/local[4011]: 30D1B180084:
to=<kl...@mx1.tachtler.net>, orig_to=<root>, relay=local, delay=0.04,
delays=0.03/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 11 07:03:06 vml060 postfix/qmgr[3988]: 30D1B180084: removed
Here are a few more postconf details:
# postconf -n mydestination
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
vml060.idmz.$mydomain
# postconf -nx mydestination
mydestination = mx1.tachtler.net, localhost.tachtler.net, localhost,
tachtler.net, vml060.idmz.tachtler.net
# postconf -nx myhostname
myhostname = mx1.tachtler.net
# postconf -nx append_at_myorigin
append_at_myorigin = no
# postconf -dx append_dot_mydomain
append_dot_mydomain = yes
Here are the e-mail - /var/spool/mail/klaus:
From root Sat Jan 11 07:03:06 2025
Return-Path: <root>
X-Original-To: root
Delivered-To: r...@mx1.tachtler.net
Received: by mx1.tachtler.net (Postfix, from userid 0)
id 30D1B180084; Sat, 11 Jan 2025 07:03:06 +0100 (CET)
Message-Id: <20250111060306.30d1b180...@mx1.tachtler.net>
Date: Sat, 11 Jan 2025 07:03:06 +0100 (CET)
From: root
Test-E-Mail
My complete /etc/postfix/main.cf (postconf -n)
# postconf -n
alias_database = $alias_maps
alias_maps = lmdb:${config_directory}/aliases
append_at_myorigin = no
compatibility_level = 3.9
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd
$daemon_directory/$process_name $process_id & sleep 5
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
vml060.idmz.$mydomain
myhostname = mx1.tachtler.net
mynetworks = 127.0.0.0/32 10.0.0.0/24 192.168.0.0/24 [::1]/128
[fd00:0:0:10::]/64 [fe80:0:0:10::]/64 [fd00:0:0:192::]/64
myorigin = vml060.idmz.$mydomain
proxy_interfaces = 88.217.171.167
recipient_canonical_maps = lmdb:${config_directory}/recipient_canonical_maps
My /etc/postfix/recipient_canonical_maps
@vml060.idmz.tachtler.net @tachtler.net
@localhost.idmz.tachtler.net @tachtler.net
@idmz.tachtler.net @tachtler.net
@localhost @tachtler.net
@mx1.tachtler.net @tachtler.net
Many thanks in advance.
Klaus.
--
---------------------------------------
e-Mail : kl...@tachtler.net
Homepage: https://www.tachtler.net
DokuWiki: https://dokuwiki.tachtler.net
---------------------------------------
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org