Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sender_dependent_relayhost_maps Syntax

158 views
Skip to first unread message

awingnut

unread,
Apr 19, 2013, 8:25:05 AM4/19/13
to
I have a series of user names that need to be relayed through a server
other then the default. It is not clear from the documentation if wild
cards are allowed but it appears they are not. If that is true then I
need to list each one individually. However, I am also using generic
mapping and again it is not explained in the documentation which address
needs to be in the relay maps file, the local address vs. the translated
address. Can some please clarify? Thanks.

Reindl Harald

unread,
Apr 19, 2013, 8:30:01 AM4/19/13
to


Am 19.04.2013 14:25, schrieb awingnut:
> I have a series of user names that need to be relayed through a server
> other then the default. It is not clear from the documentation if wild
> cards are allowed but it appears they are not

no and wildchars in case of mail are generally a bad idea

> If that is true then I need to list each one individually.
> However, I am also using generic mapping and again it is not
> explained in the documentation which address needs to be in the
> relay maps file, the local address vs. the translated
> address. Can some please clarify? Thanks.

what additional mapping?

we are using "sender_dependent_relayhost_maps" to allow specific
senders which are not hosted on our server and rely them to
the customers MTA with the users login/password without
rewrite anything

signature.asc

Wietse Venema

unread,
Apr 19, 2013, 8:40:51 AM4/19/13
to
Reindl Harald:
> Am 19.04.2013 14:25, schrieb awingnut:
> > I have a series of user names that need to be relayed through a server
> > other then the default. It is not clear from the documentation if wild
> > cards are allowed but it appears they are not
>
> no and wildchars in case of mail are generally a bad idea

Wildcards are supported with PCRE and REGEXP tables.
man 5 pcre_table
man 5 regexp_table

> > If that is true then I need to list each one individually.
> > However, I am also using generic mapping and again it is not
> > explained in the documentation which address needs to be in the
> > relay maps file, the local address vs. the translated
> > address. Can some please clarify? Thanks.

As documented, smtp_sender_login_maps lists for each envelope sender
addresses (left-hand side of table) the user login names that are
allowed to use (right-hand side of table). If that reads like gibberish
I suggest that you read up on:

envelope versus header

As documented, relay_recipient_maps contains the envelope recipient
addresses that are used in (for example) RCPT TO commands. If that
reads like gibberish I suggest that you read up on:

SMTP protocol

Wietse

awingnut

unread,
Apr 19, 2013, 9:17:28 AM4/19/13
to
On 4/19/2013 8:30 AM, Reindl Harald wrote:
>
> Am 19.04.2013 14:25, schrieb awingnut:
>> I have a series of user names that need to be relayed through a server
>> other then the default. It is not clear from the documentation if wild
>> cards are allowed but it appears they are not
> no and wildchars in case of mail are generally a bad idea
>
>> If that is true then I need to list each one individually.
>> However, I am also using generic mapping and again it is not
>> explained in the documentation which address needs to be in the
>> relay maps file, the local address vs. the translated
>> address. Can some please clarify? Thanks.
> what additional mapping?
>
> we are using "sender_dependent_relayhost_maps" to allow specific
> senders which are not hosted on our server and rely them to
> the customers MTA with the users login/password without
> rewrite anything
>
Thanks for the reply. I kind of figured wildcards were out.

As to what other mapping, I'm talking about smpt_generic_maps. If the
local user name is xyz...@mydomain.com and it is mapped to
123...@somedomain.com, which goes into the relayhosts file?

Jeroen Geilman

unread,
Apr 21, 2013, 10:50:18 AM4/21/13
to
smtp_generic_maps is consulted by the postfix smtp(8) program, when
sending mail out.
sender_dependent_relayhost_maps is consulted when incoming mail is queued.

Ergo, you should match the original sender.

For an overview of the postfix mail system, see:
http://www.postfix.org/OVERVIEW.html

--
J.

awingnut

unread,
Apr 21, 2013, 11:06:47 AM4/21/13
to
Thanks. I think I understand what you are saying but your terminology is
a bit confusing. By incoming mail, I assume you mean incoming to the
smpt process as opposed incoming mail for local delivery. This is all
outgoing mail in that context.

Jeroen Geilman

unread,
Apr 21, 2013, 4:46:31 PM4/21/13
to
No. There is no "incoming mail" going to the smtp(8) process - smtp(8)
SENDS mail, it doesn't receive any.
Look closely at the overview I linked you to.


--
J.

0 new messages