Discussion:
Redirecting Mail Via Virtual Alias Map
(too old to reply)
Norman Zhang
2005-03-16 03:18:49 UTC
Permalink
Hi,

I enabled virtual_alias_maps in main.cf

virtual_alias_maps = hash:/etc/postfix/maps/virtual

and

# more /etc/postfix/maps/virtual
***@test.arkonnetworks.com ***@mailhk.test.arkonnetworks.com
***@test.arkonneworks.com ***@mail.rd.arkonnetworks.com

However, ***@test.arkonnetworks.com still being routed to
mail.test.arkonnetworks.com. I have disabled

#transport_maps = hash:/etc/postfix/maps/transport

# more /etc/postfix/maps/transport
test.arkonnetworks.com smtp:[207.34.136.7]

May I ask for a few pointers?

Regards,
Norman Zhang
Norman Zhang
2005-03-16 03:20:37 UTC
Permalink
Post by Norman Zhang
virtual_alias_maps = hash:/etc/postfix/maps/virtual
and
# more /etc/postfix/maps/virtual
mail.test.arkonnetworks.com. I have disabled
#transport_maps = hash:/etc/postfix/maps/transport
# more /etc/postfix/maps/transport
test.arkonnetworks.com smtp:[207.34.136.7]
May I ask for a few pointers?
I have virtual_alias_domains added,

virtual_alias_domains = test.arkonnetworks.com mail.rd.arkonnetworks.com
mailhk.test.arkonnetworks.com

but received,

Delivery to the following recipient failed permanently:

***@rd.akonnetworks.com

Technical details of permanent failure:
PERM_FAILURE: DNS Error: Domain name not found

Regards,
Norman Zhang
Magnus Bäck
2005-03-16 05:49:55 UTC
Permalink
On Wednesday, March 16, 2005 at 00:53 CET,
Post by Norman Zhang
I have virtual_alias_domains added,
=20
virtual_alias_domains =3D test.arkonnetworks.com mail.rd.arkonnetworks.=
com=20
Post by Norman Zhang
mailhk.test.arkonnetworks.com
=20
but received,
=20
=20
=20
PERM_FAILURE: DNS Error: Domain name not found
That error message does not come from Postifx. Show logs!

--=20
Magnus B=E4ck
***@dsek.lth.se
Norman Zhang
2005-03-16 07:26:14 UTC
Permalink
Post by Magnus Bäck
Post by Norman Zhang
I have virtual_alias_domains added,
virtual_alias_domains =3D test.arkonnetworks.com mail.rd.arkonnetworks.=
com=20
Post by Magnus Bäck
Post by Norman Zhang
mailhk.test.arkonnetworks.com
but received,
PERM_FAILURE: DNS Error: Domain name not found
=20
That error message does not come from Postifx. Show logs!
I've made some further changes to main.cf, and now I'm seeing the=20
following bounce.

<***@mailhk.test.arkonnetworks.com> (expanded from
<***@test.arkonnetworks.com>): User unknown

Reporting-MTA: dns; mail2.gw.arkonnetworks.com
X-Postfix-Queue-ID: 9307DC15113
X-Postfix-Sender: rfc822; ***@telus.net
Arrival-Date: Tue, 15 Mar 2005 23:20:17 -0800 (PST)

Final-Recipient: rfc822; ***@mailhk.test.arkonnetworks.com
Original-Recipient: rfc822; ***@test.arkonnetworks.com
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; User unknown

# more /etc/postfix/maps/virtual
postmaster ***@test.arkonnetworks.com
abuse ***@test.arkonnetworks.com
***@test.arkonnetworks.com ***@mailhk.test.arkonnetworks.=
com
***@test.arkonneworks.com ***@mail.rd.arkonnetworks.com

# postconf -n

biff =3D no
command_directory =3D /usr/sbin
config_directory =3D /etc/postfix
content_filter =3D lmtp-filter:[127.0.0.1]:10025
daemon_directory =3D /usr/lib/postfix
delay_warning_time =3D 4h
disable_vrfy_command =3D yes
html_directory =3D /usr/share/doc/postfix-2.1.5/html
inet_interfaces =3D all
local_recipient_maps =3D
local_transport =3D error:local mail delivery is disabled
mail_owner =3D postfix
mailq_path =3D /usr/bin/mailq.postfix
manpage_directory =3D /usr/share/man
mydestination =3D
mynetworks =3D 207.34.136.0/27 127.0.0.0/8
myorigin =3D test.arkonnetworks.com
newaliases_path =3D /usr/bin/newaliases.postfix
parent_domain_matches_subdomains =3D debug_peer_list smtpd_access_ma=
ps
queue_directory =3D /var/spool/postfix
readme_directory =3D /usr/share/doc/postfix-2.1.5/README_FILES
receive_override_options =3D no_address_mappings
relay_domains =3D test.arkonnetworks.com
relay_recipient_maps =3D hash:/etc/postfix/maps/relay_recipients
sample_directory =3D /usr/share/doc/postfix-2.1.5/samples
sendmail_path =3D /usr/sbin/sendmail.postfix
setgid_group =3D postdrop
show_user_unknown_table_name =3D no
smtpd_banner =3D $myhostname ESMTP
smtpd_helo_required =3D yes
smtpd_recipient_restrictions =3D permit_mynetworks=20
reject_unauth_destination reject_non_fqdn_recipient=20
reject_unknown_recipient_domain reject_non_fqdn_sender=20
reject_multi_recipient_bounce reject_rbl_client bl.spamcopy.net=20
reject_rbl_client sbl-xbl.spamhaus.org reject_rbl_client=20
list.dsbl.orgreject_rbl_client relays.ordb.org=20
reject_rhsbl_sender dsn.rfc-ignorant.org
strict_rfc821_envelopes =3D yes
transport_maps =3D hash:/etc/postfix/maps/transport
unknown_local_recipient_reject_code =3D 450
virtual_alias_domains =3D mail.rd.arkonnetworks.com=20
mailhk.test.arkonnetworks.com
virtual_alias_maps =3D hash:/etc/postfix/maps/virtual
Matt Fretwell
2005-03-16 13:19:50 UTC
Permalink
Post by Norman Zhang
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; User unknown
Logs? The above is about as much use as a chocolate fireguard.

Is the user in virtual_alias_maps?


Matt
Victor Duchovni
2005-03-16 13:51:40 UTC
Permalink
relay_domains = test.arkonnetworks.com
relay_recipient_maps = hash:/etc/postfix/maps/relay_recipients
There's your problem:

http://www.postfix.org/postconf.5.html#parent_domain_matches_subdomains
--
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:***@postfix.org?body=unsubscribe%20postfix-users>
Norman Zhang
2005-03-16 19:50:07 UTC
Permalink
Post by Victor Duchovni
relay_domains = test.arkonnetworks.com
relay_recipient_maps = hash:/etc/postfix/maps/relay_recipients
http://www.postfix.org/postconf.5.html#parent_domain_matches_subdomains
Sorry I don't understand. All mail will come in as
***@test.arkonnetworks.com then it will be routed to appropriate
servers. May I ask for a few pointers?

1. mailhk.test.arkonnetworks.com
2. mail.rd.arkonnetworks.com

# grep relay main.cf
relay_domains = test.arkonnetworks.com mailhk.test.arkonnetworks.com
relay_recipient_maps = hash:/etc/postfix/maps/relay_recipients

parent_domain_matches_subdomains =
debug_peer_list
smtpd_access_maps

# more maps/relay_recipients
@test.arkonnetworks.com x
@mailhk.test.arkonnetworks.com x

Mar 16 11:45:46 mail2 postfix/error[9514]: D3342C15100:
to=<***@mailhk.test.arkonnetworks.com>,
orig_to=<***@test.arkonnetworks.com>, relay=none, delay=0,
status=bounced (User unknown)

Regards,
Norman Zhang
Norman Zhang
2005-03-18 02:23:19 UTC
Permalink
Post by Norman Zhang
Post by Victor Duchovni
http://www.postfix.org/postconf.5.html#parent_domain_matches_subdomains
Sorry I don't understand. All mail will come in as
servers. May I ask for a few pointers?
1. mailhk.test.arkonnetworks.com
2. mail.rd.arkonnetworks.com
# grep relay main.cf
relay_domains = test.arkonnetworks.com mailhk.test.arkonnetworks.com
relay_recipient_maps = hash:/etc/postfix/maps/relay_recipients
parent_domain_matches_subdomains =
debug_peer_list
smtpd_access_maps
# more maps/relay_recipients
@test.arkonnetworks.com x
@mailhk.test.arkonnetworks.com x
status=bounced (User unknown)
I'm still stuck here with, I added mailhk.test.arkonnetworks.com to
relay_domains, but Postfix complaint relay_domains and
virtual_alias_maps should not have same domains.

relay_domains = test.arkonnetworks.com mailhk.test.arkonnetworks.com

May I ask for some help please?

Regards,
Norman Zhang
Matt Fretwell
2005-03-18 02:54:19 UTC
Permalink
Post by Norman Zhang
I'm still stuck here with, I added mailhk.test.arkonnetworks.com to
relay_domains, but Postfix complaint relay_domains and
virtual_alias_maps should not have same domains.
relay_domains = test.arkonnetworks.com mailhk.test.arkonnetworks.com
May I ask for some help please?
I think it is fairly self explanatory. List:

mailhk.test.arkonnetworks.com

as EITHER a relay OR virtual domain, but not both.


Matt
Norman Zhang
2005-03-18 02:58:50 UTC
Permalink
Post by Norman Zhang
Post by Norman Zhang
I'm still stuck here with, I added mailhk.test.arkonnetworks.com to
relay_domains, but Postfix complaint relay_domains and
virtual_alias_maps should not have same domains.
relay_domains = test.arkonnetworks.com mailhk.test.arkonnetworks.com
May I ask for some help please?
mailhk.test.arkonnetworks.com
as EITHER a relay OR virtual domain, but not both.
I only have mailhk.test.arkonnetworks.com in virtual_alias_maps before,
and it didn't work. So I started trail and error, but still couldn't get
any further.

http://marc.theaimsgroup.com/?t=111092559100004&r=1&w=2

Regards,
Norman Zhang
Matt Fretwell
2005-03-18 03:42:32 UTC
Permalink
So I started trail and error, but still couldn't get any further.
The 'suck it and see' approach is next to useless. Judging by your past
posts and the config information and logs you have supplied, it would
appear you have not supplied all relevant information. The info you HAVE
supplied should result in your objective working. The fact that it is not
means there is some unrevealed information in your config.

Until all relevant info pertaining to users/transports/domains is
supplied, any further suggestions would be pure speculation.

Might one also suggest that you read the fine documentation, both on the
website and the manpages, as some of your questions are suitably covered
by the documentation.


Matt
Norman Zhang
2005-03-18 04:51:39 UTC
Permalink
Post by Matt Fretwell
Until all relevant info pertaining to users/transports/domains is
supplied, any further suggestions would be pure speculation.
Here is it again. Please help.

Regards,
Norman Zhang

postfix/error[9816]: 395A3C15100:
to=<***@mailhk.test.arkonnetworks.com>,
orig_to=<***@test.arkonnetworks.com>, relay=none, delay=0,
status=bounced (User unknown)

# more maps/transport
test.arkonnetworks.com smtp:[207.34.136.7]
mailhk.test.arkonnetworks.com smtp:[203.198.73.118]

# more maps/relay_recipients
@test.arkonnetworks.com x

# more maps/virtual
postmaster ***@test.arkonnetworks.com
abuse ***@test.arkonnetworks.com
***@test.arkonnetworks.com ***@mailhk.test.arkonnetworks.com
***@test.arkonneworks.com ***@mail.rd.arkonnetworks.com

# postconf -n
biff = no
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = lmtp-filter:[127.0.0.1]:10025
daemon_directory = /usr/lib/postfix
delay_warning_time = 4h
disable_vrfy_command = yes
html_directory = /usr/share/doc/postfix-2.1.5/html
inet_interfaces = all
lmtp-filter_destination_concurrency_limit = 2
local_recipient_maps =
local_transport = error:local mail delivery is disabled
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination =
mynetworks = 207.34.136.0/27 127.0.0.0/8
myorigin = test.arkonnetworks.com
parent_domain_matches_subdomains =
debug_peer_list
smtpd_access_maps
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.1.5/README_FILES
receive_override_options = no_address_mappings
relay_domains = test.arkonnetworks.com mailhk.test.arkonnetworks.com
relay_recipient_maps = hash:/etc/postfix/maps/relay_recipients
#sample_directory = /usr/share/doc/postfix-2.1.5/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
show_user_unknown_table_name = no
smtpd_banner = $myhostname ESMTP
smtpd_helo_required = yes
smtpd_recipient_restrictions =
permit_mynetworks
reject_unauth_destination
reject_non_fqdn_recipient
reject_unknown_recipient_domain
reject_non_fqdn_sender
reject_multi_recipient_bounce
reject_rbl_client bl.spamcop.net
reject_rbl_client sbl-xbl.spamhaus.org
reject_rbl_client list.dsbl.org
reject_rbl_client relays.ordb.org
reject_rhsbl_sender dsn.rfc-ignorant.org
strict_rfc821_envelopes = yes
transport_maps = hash:/etc/postfix/maps/transport
unknown_local_recipient_reject_code = 450
virtual_alias_domains = mail.rd.arkonnetworks.com
mailhk.test.arkonnetworks.com
virtual_alias_maps = hash:/etc/postfix/maps/virtual
Matt Fretwell
2005-03-18 04:58:29 UTC
Permalink
Post by Norman Zhang
virtual_alias_domains = mail.rd.arkonnetworks.com
mailhk.test.arkonnetworks.com
Is the above how it appears in main.cf? Or is it just a line wrap in the
MUA?


Matt
Norman Zhang
2005-03-18 05:02:13 UTC
Permalink
Post by Matt Fretwell
Post by Norman Zhang
virtual_alias_domains = mail.rd.arkonnetworks.com
mailhk.test.arkonnetworks.com
Is the above how it appears in main.cf? Or is it just a line wrap in the
MUA?
It is just line wrapped. There's 1 space between the 2 domains. Any ideas?

Regards,
Norman Zhang
Matt Fretwell
2005-03-18 05:13:42 UTC
Permalink
Post by Norman Zhang
relay_domains = test.arkonnetworks.com mailhk.test.arkonnetworks.com
I really can't see any obvious flaw. The above should be:

relay_domains = test.arkonnetworks.com


You have set mailhk.test.arkonnetworks.com as a virtual domain. It
shouldn't be listed in relay_domains as well.


Matt
Norman Zhang
2005-03-18 21:39:17 UTC
Permalink
Post by Norman Zhang
relay_domains = test.arkonnetworks.com mailhk.test.arkonnetworks.com
relay_domains = test.arkonnetworks.com
You have set mailhk.test.arkonnetworks.com as a virtual domain. It
shouldn't be listed in relay_domains as well.
I've reread, http://www.postfix.org/VIRTUAL_README.html#forwarding.
Currently, I have,

relay_domains = test.arkonnetworks.com

I wish to to forward mail for test.arkonnetworks.com to

1. mailhk.test.arkonnetworks.com
2. mail.rd.arkonnetworks.com

The documents seem to recommend

virtual_alias_maps = test.arkonnetworks.com, but setting it to that
won't work. Should I keep it as mailhk.test.arkonnetworks.com?

Regards,
Norman Zhang
Norman Zhang
2005-03-18 23:59:26 UTC
Permalink
Post by Norman Zhang
relay_domains = test.arkonnetworks.com
You have set mailhk.test.arkonnetworks.com as a virtual domain. It
shouldn't be listed in relay_domains as well.
I've reread, http://www.postfix.org/VIRTUAL_README.html#forwarding.
Currently, I have,
relay_domains = test.arkonnetworks.com
I wish to to forward mail for test.arkonnetworks.com to
1. mailhk.test.arkonnetworks.com
2. mail.rd.arkonnetworks.com
The documents seem to recommend
virtual_alias_maps = test.arkonnetworks.com, but setting it to that
won't work. Should I keep it as mailhk.test.arkonnetworks.com?
Without virtual_alias_domains, I'm fine. Would someone please give me a
few pointers?

Regards,
Norman Zhang

# postconf -n | grep virtual
virtual_alias_domains = test.arkonnetworks.com
virtual_alias_maps = hash:/etc/postfix/maps/virtual

# more /etc/postfix/maps/virtual
postmaster ***@mail.rd.arkonnetworks.com
abuse ***@mail.rd.arkonnetworks.com
***@test.arkonnetworks.com ***@mailhk.test.arkonnetworks.com
***@test.arkonneworks.com ***@mail.rd.arkonnetworks.com

# more /etc/postfix/maps/transport
test.arkonnetworks.com smtp:[207.34.136.7]
mailhk.test.arkonnetworks.com smtp:[203.198.73.118]

postfix/smtpd[14784]: maps_find: virtual_alias_maps:
@test.arkonnetworks.com: not found

postfix/smtpd[14784]: mail_addr_find:
***@test.arkonnetworks.com -> (not found)

postfix/smtpd[14784]: NOQUEUE: reject: RCPT from
wproxy.gmail.com[64.233.184.205]: 550
<***@test.arkonnetworks.com>: Recipient address rejected: User
unknown; from=<***@gmail.com>
to=<***@test.arkonnetworks.com> proto=ESMTP helo=<wproxy.gmail.com>

postfix/smtpd[14784]: > wproxy.gmail.com[64.233.184.205]: 550
<***@test.arkonnetworks.com>: Recipient address rejected: User
unknown
Norman Zhang
2005-03-19 01:43:44 UTC
Permalink
Post by Norman Zhang
relay_domains = test.arkonnetworks.com mailhk.test.arkonnetworks.com
relay_domains = test.arkonnetworks.com
You have set mailhk.test.arkonnetworks.com as a virtual domain. It
shouldn't be listed in relay_domains as well.
I've tracked it down to these options. I think somehow they are
conflicting? Do I need relay_domains, relay_recipient_maps and
transport_maps with virtual_alias_domains?

Regards,
Norman Zhang

relay_domains = $mydestination
relay_recipient_maps = hash:/etc/postfix/maps/relay_recipients
mydestination =
transport_maps = hash:/etc/postfix/maps/transport
virtual_alias_domains = test.arkonnetworks.com
virtual_alias_maps = hash:/etc/postfix/maps/virtual

# more maps/relay_recipients
@test.arkonnetworks.com x

# more /etc/postfix/maps/transport
test.arkonnetworks.com smtp:[207.34.136.7]
mailhk.test.arkonnetworks.com smtp:[203.198.73.118]

# more /etc/postfix/maps/virtual
postmaster ***@mail.rd.arkonnetworks.com
abuse ***@mail.rd.arkonnetworks.com
***@test.arkonnetworks.com ***@mailhk.test.arkonnetworks.com
***@test.arkonneworks.com ***@mail.rd.arkonnetworks.com

postfix/smtpd[15316]: maps_find: recipient_canonical_maps: norman.zhang:
not found
postfix/smtpd[15316]: maps_find: recipient_canonical_maps:
@test.arkonnetworks.com: not found
postfix/smtpd[15316]: mail_addr_find:
***@test.arkonnetworks.com -> (not found)
postfix/smtpd[15316]: maps_find: canonical_maps:
***@test.arkonnetworks.com: not found
postfix/smtpd[15316]: maps_find: canonical_maps: norman.zhang: not found
postfix/smtpd[15316]: maps_find: canonical_maps:
@test.arkonnetworks.com: not found
postfix/smtpd[15316]: mail_addr_find:
***@test.arkonnetworks.com -> (not found)
postfix/smtpd[15316]: maps_find: virtual_alias_maps:
***@test.arkonnetworks.com: not found
postfix/smtpd[15316]: maps_find: virtual_alias_maps: norman.zhang: not found
postfix/smtpd[15316]: maps_find: virtual_alias_maps:
@test.arkonnetworks.com: not found
postfix/smtpd[15316]: mail_addr_find:
***@test.arkonnetworks.com -> (not found)
postfix/smtpd[15316]: NOQUEUE: reject: RCPT from
wproxy.gmail.com[64.233.184.200]: 550
<***@test.arkonnetworks.com>: Recipient address rejected: User
unknown; from=<***@gmail.com>
to=<***@test.arkonnetworks.com> proto=ESMTP helo=<wproxy.gmail.com>
postfix/smtpd[15316]: > wproxy.gmail.com[64.233.184.200]: 550
<***@test.arkonnetworks.com>: Recipient address rejected: User
unknown
Norman Zhang
2005-03-19 02:57:34 UTC
Permalink
Post by Norman Zhang
relay_domains = $mydestination
relay_recipient_maps = hash:/etc/postfix/maps/relay_recipients
mydestination =
transport_maps = hash:/etc/postfix/maps/transport
virtual_alias_domains = test.arkonnetworks.com
virtual_alias_maps = hash:/etc/postfix/maps/virtual
# more maps/relay_recipients
@test.arkonnetworks.com x
# more /etc/postfix/maps/transport
test.arkonnetworks.com smtp:[207.34.136.7]
mailhk.test.arkonnetworks.com smtp:[203.198.73.118]
mail.rd.arkonnetworks.com smtp:[mail.rd.arkonnetworks.com]
mailhk.test.arkonnetworks.com smtp:[mailhk.test.arkonnetworks.com]
Post by Norman Zhang
# more /etc/postfix/maps/virtual
^
Stupid typo here 8( Now, mail to ***@test.arkonnetworks.com works.

However mail to ***@test.arkonnetworks.com still doesn't relay.
I tried adding mailhk.test.arkonnetworks.com to relay_domains and its IP
to mynetwork, but it still didn't work. Below is the error message.

Mar 18 18:52:44 mail2 postfix/smtp[16469]: 3C823C00099:
to=<***@mailhk.test.arkonnetworks.com>,
orig_to=<***@test.arkonnetworks.com>,
relay=mailhk.test.arkonnetworks.com[203.198.73.118], delay=3,
status=bounced (host mailhk.test.arkonnetworks.com[203.198.73.118] said:
501 5.7.1 This system is not configured to relay mail from
<***@gmail.com> to <***@mailhk.test.arkonnetworks.com>
for 207.34.136.12 (in reply to RCPT TO command))

Regards,
Norman Zhang
Magnus Bäck
2005-03-19 10:37:00 UTC
Permalink
On Saturday, March 19, 2005 at 03:57 CET,
Norman Zhang <***@rd.arkonnetworks.com> wrote:

[...]
relay. I tried adding mailhk.test.arkonnetworks.com to relay_domains
and its IP to mynetwork, but it still didn't work. Below is the error
message.
Don't make random configuration changes.
Mar 18 18:52:44 mail2 postfix/smtp[16469]: 3C823C00099:=20
relay=3Dmailhk.test.arkonnetworks.com[203.198.73.118], delay=3D3,=20
status=3Dbounced (host mailhk.test.arkonnetworks.com[203.198.73.118] sa=
id:=20
501 5.7.1 This system is not configured to relay mail from=20
=20
for 207.34.136.12 (in reply to RCPT TO command))
mailhk.test.arkonnetworks.com, which doesn't run Postfix, does not
accept messages for ***@mailhk.test.arkonnetworks.com.

--=20
Magnus B=E4ck
***@dsek.lth.se
Magnus Bäck
2005-03-19 10:42:21 UTC
Permalink
On Saturday, March 19, 2005 at 00:59 CET,
Norman Zhang <***@rd.arkonnetworks.com> wrote:

[...]
postfix/smtpd[14784]: > wproxy.gmail.com[64.233.184.205]: 550=20
=20
unknown
It seems you have set show_user_unknown_table_name=3Dno. This making
debugging harder.

--=20
Magnus B=E4ck
***@dsek.lth.se
Norman Zhang
2005-03-19 16:28:23 UTC
Permalink
Post by Magnus Bäck
Don't make random configuration changes.
Okay. Will revert those changes. May I ask what's the prefered way for=20
transport map.

example.com smtp:[hostname]

or

example.com smtp:[ipaddress]
Post by Magnus Bäck
Mar 18 18:52:44 mail2 postfix/smtp[16469]: 3C823C00099:=20
relay=3Dmailhk.test.arkonnetworks.com[203.198.73.118], delay=3D3,=20
status=3Dbounced (host mailhk.test.arkonnetworks.com[203.198.73.118] sa=
id:=20
Post by Magnus Bäck
501 5.7.1 This system is not configured to relay mail from=20
=20
Post by Magnus Bäck
for 207.34.136.12 (in reply to RCPT TO command))
=20
mailhk.test.arkonnetworks.com, which doesn't run Postfix, does not
Does it have to be Postfix? If it is configure it to accept=20
***@mailhk.test.arkonnetworks.com, it would be fine? I runs=20
mailsweeper.

Regards,
Norman Zhang
Magnus Bäck
2005-03-19 16:56:31 UTC
Permalink
On Saturday, March 19, 2005 at 17:27 CET,
Post by Norman Zhang
=20
Post by Magnus Bäck
Don't make random configuration changes.
=20
Okay. Will revert those changes. May I ask what's the prefered way for=20
transport map.
=20
example.com smtp:[hostname]
=20
or
=20
example.com smtp:[ipaddress]
Use whatever is convenient for you. Most people think hostnames are
easier to remember and change less often than IP addresses.
Post by Norman Zhang
Post by Magnus Bäck
mailhk.test.arkonnetworks.com, which doesn't run Postfix, does not
=20
Does it have to be Postfix?
No, Postfix communicates with all programs that speak SMTP.
Post by Norman Zhang
If it is configure it to accept
it would be fine? I runs mailsweeper.
Please. Do not only read error messages and logs and post them to the
list. Try to understand them! The log entry you posted told you to
which server and recipient Postfix attempted to deliver the message.
Was this the server and recipient you desired? Was Postfix doing the
right thing? We cannot answer such questions for you!

--=20
Magnus B=E4ck
***@dsek.lth.se
Norman Zhang
2005-03-19 17:23:38 UTC
Permalink
Post by Magnus Bäck
Was this the server and recipient you desired? Was Postfix doing the
right thing? We cannot answer such questions for you!
The server was indeed trying to forward mail out=20
mailhk.test.arkonnetworks.com based on virtual_alias_maps.

May I ask are the following maps sufficient?

relay_recipient_maps =3D hash:/etc/postfix/maps/relay_recipients

# more maps/relay_recipients
@test.arkonnetworks.com x

transport_maps =3D hash:/etc/postfix/maps/transport

# more maps/transport
mail.rd.arkonnetworks.com smtp:[mail.rd.arkonnetworks.com]
mailhk.test.arkonnetworks.com smtp:[mailhk.test.arkonnetworks.com]

Regards,
Norman Zhang
Magnus Bäck
2005-03-19 17:43:34 UTC
Permalink
On Saturday, March 19, 2005 at 18:23 CET,
Post by Norman Zhang
=20
Post by Magnus Bäck
Was this the server and recipient you desired? Was Postfix doing
the right thing? We cannot answer such questions for you!
=20
The server was indeed trying to forward mail out=20
mailhk.test.arkonnetworks.com based on virtual_alias_maps.
I cannot parse this statement.
Post by Norman Zhang
May I ask are the following maps sufficient?
To do what? You may at some point have explained the actual problem
you're trying to solve, but I think that information has been lost
somewhere along the way.
Post by Norman Zhang
relay_recipient_maps =3D hash:/etc/postfix/maps/relay_recipients
=20
# more maps/relay_recipients
@test.arkonnetworks.com x
What's the use of relay_recipient_maps when you accept all recipients
anyway?

You must list test.arkonnetworks.com in relay_domains if you want the
domain to be a relay domain.
Post by Norman Zhang
transport_maps =3D hash:/etc/postfix/maps/transport
=20
# more maps/transport
mail.rd.arkonnetworks.com smtp:[mail.rd.arkonnetworks.com]
mailhk.test.arkonnetworks.com smtp:[mailhk.test.arkonnetworks.com]
transport_maps is a mechanism for overriding Postfix' default
routing decisions. Unless you have MX records in DNS that direct
messages to mail.rd.arkonnetworks.com to some other host than
mail.rd.arkonnetworks.com, the above use of transport_maps is
useless.

--=20
Magnus B=E4ck
***@dsek.lth.se
Norman Zhang
2005-03-19 18:18:19 UTC
Permalink
Post by Magnus Bäck
Post by Norman Zhang
The server was indeed trying to forward mail out=20
mailhk.test.arkonnetworks.com based on virtual_alias_maps.
=20
I cannot parse this statement.
Postfix is setup as gateway for @test.arkonnetworks.com, then forward
mail to different servers using virtual_alias_maps.

virtual_alias_domains =3D test.arkonnetworks.com
virtual_alias_maps =3D hash:/etc/postfix/maps/virtual

# more maps/virtual
postmaster ***@mail.rd.arkonnetworks.com
abuse ***@mail.rd.arkonnetworks.com
***@test.arkonnetworks.com ***@mailhk.test.arkonnetworks.=
com
***@test.arkonnetworks.com ***@mail.rd.arkonnetworks.co=
m
Post by Magnus Bäck
Post by Norman Zhang
May I ask are the following maps sufficient?
=20
To do what? You may at some point have explained the actual problem
you're trying to solve, but I think that information has been lost
somewhere along the way.
I'm trying to follow the bottom half of,=20
http://www.postfix.org/STANDARD_CONFIGURATION_README.html#firewall to=20
setup a mail gateway with no local box.
Post by Magnus Bäck
Post by Norman Zhang
relay_recipient_maps =3D hash:/etc/postfix/maps/relay_recipients
# more maps/relay_recipients
@test.arkonnetworks.com x
=20
What's the use of relay_recipient_maps when you accept all recipients
anyway?
Thanks. I will diable this.
Post by Magnus Bäck
You must list test.arkonnetworks.com in relay_domains if you want the
domain to be a relay domain.
Understood, if I use @test.arkonnetworks.com for virtual_alias_domains,=20
I need to disable relay_domains and vice versa.
Post by Magnus Bäck
Post by Norman Zhang
transport_maps =3D hash:/etc/postfix/maps/transport
# more maps/transport
mail.rd.arkonnetworks.com smtp:[mail.rd.arkonnetworks.com]
mailhk.test.arkonnetworks.com smtp:[mailhk.test.arkonnetworks.com]
=20
transport_maps is a mechanism for overriding Postfix' default
routing decisions. Unless you have MX records in DNS that direct
messages to mail.rd.arkonnetworks.com to some other host than
mail.rd.arkonnetworks.com, the above use of transport_maps is
useless.
I'm confused when using virtual_alias_maps

***@test.arkonnetworks.com ***@mail.rd.arkonnetworks.co=
m

mail.rd.arkonnetworks.com from above does not require MX record, and I=20
don't need transport to forward mail?

Regards,
Norman Zhang
Magnus Bäck
2005-03-20 12:58:20 UTC
Permalink
On Saturday, March 19, 2005 at 19:17 CET,
forward mail to different servers using virtual_alias_maps.
=20
virtual_alias_domains =3D test.arkonnetworks.com
virtual_alias_maps =3D hash:/etc/postfix/maps/virtual
=20
# more maps/virtual
s.com
com

Okay, nothing strange here. With a suitable DNS setup for
mailhk.test.arkonnetworks.com and mail.rd.arkonnetworks.com
Postfix will happily route the messages correctly without
any extra effort from you.
Post by Magnus Bäck
Post by Norman Zhang
May I ask are the following maps sufficient?
To do what? You may at some point have explained the actual problem
you're trying to solve, but I think that information has been lost
somewhere along the way.
=20
I'm trying to follow the bottom half of,
http://www.postfix.org/STANDARD_CONFIGURATION_README.html#firewall to
setup a mail gateway with no local box.
That example assumes that the domain is a relay domain for
which Postfix is the primary MX, but you want the domain to
be a virtual alias domain. Therefore you cannot follow that
example very closely.

[...]
Post by Magnus Bäck
You must list test.arkonnetworks.com in relay_domains if you want
the domain to be a relay domain.
=20
I need to disable relay_domains and vice versa.
Correct. An address belongs to exactly one address class.
Post by Magnus Bäck
transport_maps is a mechanism for overriding Postfix' default
routing decisions. Unless you have MX records in DNS that direct
messages to mail.rd.arkonnetworks.com to some other host than
mail.rd.arkonnetworks.com, the above use of transport_maps is
useless.
=20
I'm confused when using virtual_alias_maps
=20
com
=20
mail.rd.arkonnetworks.com from above does not require MX record, and I=20
don't need transport to forward mail?
An A record that points mail.rd.arkonnetworks.com to the IP address of
that host is all that is required, unless you have an MX record for
mail.rd.arkonnetworks.com that points to some other host. MX records
override A records.

Postfix does not need explicit message routing unless you need to
override the information found in DNS. You don't need explicit routing
to send mail to hotmail.com, so why would you need it to send mail to
mail.rd.arkonnetworks.com?

--=20
Magnus B=E4ck
***@dsek.lth.se
Norman Zhang
2005-03-20 17:23:48 UTC
Permalink
com
Post by Magnus Bäck
Post by Norman Zhang
mail.rd.arkonnetworks.com from above does not require MX record, and I=20
don't need transport to forward mail?
=20
An A record that points mail.rd.arkonnetworks.com to the IP address of
that host is all that is required, unless you have an MX record for
mail.rd.arkonnetworks.com that points to some other host. MX records
override A records.
I have MX record for rd.arkonnetworks.com not mail.rd.arkonnetworks.com.=20
mail.rd.arkonnetworks.com only has the A record.

I think I was confused that @mail.rd.arkonnetworks.com mean a domain=20
that is associated with the MX record. Since I didn't have MX record for=20
mail.rd.arkonnetworks.com, I added transport. I forgot mail can be sent=20
to the mailhost directly. Is my understanding correct now?
Post by Magnus Bäck
set type=3Dmx
mail.rd.arkonnetworks.com
Server: helium.bc.tac.net
Address: 209.53.4.130

arkonnetworks.com
primary name server =3D ns1.arkonnetworks.com
responsible mail addr =3D dns\.admin.arkonnetworks.com
serial =3D 20050319
refresh =3D 10800 (3 hours)
retry =3D 3600 (1 hour)
expire =3D 604800 (7 days)
default TTL =3D 86400 (1 day)
Post by Magnus Bäck
rd.arkonnetworks.com
Server: helium.bc.tac.net
Address: 209.53.4.130

Non-authoritative answer:
rd.arkonnetworks.com MX preference =3D 10, mail exchanger =3D=20
mail.gw.arkonnetworks.com

arkonnetworks.com nameserver =3D ns1.arkonnetworks.com
arkonnetworks.com nameserver =3D ns2.arkonnetworks.com
mail.gw.arkonnetworks.com internet address =3D 207.34.136.11

Regards,
Norman Zhang
Magnus Bäck
2005-03-20 20:39:31 UTC
Permalink
On Sunday, March 20, 2005 at 18:23 CET,
Post by Magnus Bäck
An A record that points mail.rd.arkonnetworks.com to the IP address
of that host is all that is required, unless you have an MX record
for mail.rd.arkonnetworks.com that points to some other host. MX
records override A records.
=20
I have MX record for rd.arkonnetworks.com not mail.rd.arkonnetworks.com=
.
mail.rd.arkonnetworks.com only has the A record.
=20
that is associated with the MX record. Since I didn't have MX record fo=
r=20
mail.rd.arkonnetworks.com, I added transport. I forgot mail can be sent=
=20
to the mailhost directly. Is my understanding correct now?
Yes, so it seems.

[...]

--=20
Magnus B=E4ck
***@dsek.lth.se

Continue reading on narkive:
Loading...