chantal | 14 May 14:58
Picon
Favicon

relay_recipient_maps doens't work

Hi list,

I want to use relay_recipient_maps on a postfix 2.5.1 relay server but  
it doens't appear to be doing anything. I want to accept mail for  
existing users only but it accepts mail for all users.

this is postconf -n

append_at_myorigin = no
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
inet_interfaces = all
local_recipient_maps =
mailbox_size_limit = 0
message_size_limit = 25000000
mydestination =
myhostname = server.domain.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = domain.com
readme_directory = no
recipient_delimiter = +
relay_domains = mysql:$config_directory/mysql_relay_domains_maps.cf
relay_recipient_maps = mysql:$config_directory/mysql_relay_maps.cf
smtp_host_lookup = native,dns
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
transport_maps = mysql:$config_directory/mysql_transport_maps.cf
unknown_address_reject_code = 450
unknown_local_recipient_reject_code = 450
(Continue reading)

mouss | 14 May 15:22

Re: relay_recipient_maps doens't work

chantal <at> antenna.nl wrote:
> Hi list,
>
> I want to use relay_recipient_maps on a postfix 2.5.1 relay server but 
> it doens't appear to be doing anything. I want to accept mail for 
> existing users only but it accepts mail for all users.
>
> this is postconf -n
>
> append_at_myorigin = no
> append_dot_mydomain = no
> biff = no
> config_directory = /etc/postfix
> content_filter = smtp-amavis:[127.0.0.1]:10024
> inet_interfaces = all
> local_recipient_maps =
> mailbox_size_limit = 0
> message_size_limit = 25000000
> mydestination =
> myhostname = server.domain.com
> mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
> myorigin = domain.com
> readme_directory = no
> recipient_delimiter = +
> relay_domains = mysql:$config_directory/mysql_relay_domains_maps.cf
> relay_recipient_maps = mysql:$config_directory/mysql_relay_maps.cf
> smtp_host_lookup = native,dns
> smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
> transport_maps = mysql:$config_directory/mysql_transport_maps.cf
> unknown_address_reject_code = 450
(Continue reading)

chantal | 14 May 16:01
Picon
Favicon

Re: relay_recipient_maps doens't work

H

Quoting mouss <mouss <at> netoyen.net>:

> chantal <at> antenna.nl wrote:
>> Hi list,
>>
>> I want to use relay_recipient_maps on a postfix 2.5.1 relay server   
>> but it doens't appear to be doing anything. I want to accept mail   
>> for existing users only but it accepts mail for all users.
>>
>> this is postconf -n
>>
>> append_at_myorigin = no
>> append_dot_mydomain = no
>> biff = no
>> config_directory = /etc/postfix
>> content_filter = smtp-amavis:[127.0.0.1]:10024
>> inet_interfaces = all
>> local_recipient_maps =
>> mailbox_size_limit = 0
>> message_size_limit = 25000000
>> mydestination =
>> myhostname = server.domain.com
>> mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
>> myorigin = domain.com
>> readme_directory = no
>> recipient_delimiter = +
>> relay_domains = mysql:$config_directory/mysql_relay_domains_maps.cf
>> relay_recipient_maps = mysql:$config_directory/mysql_relay_maps.cf
(Continue reading)

mouss | 14 May 16:42

Re: relay_recipient_maps doens't work

chantal <at> antenna.nl wrote:
>>>
>>>
>>>
>>
>> chose an address that does not exist in your relay recipient maps,
>> let's say foo <at> example.com (of course, example.com must be a relay
>> domain) and post the results of the following three commands.
>>
>> # postmap -q example.com mysql:mysql_relay_domains_maps.cf
>> # postmap -q foo <at> example.com mysql:mysql_relay_maps.cf
>> # postmap -q foo <at> example.com mysql_virtual_alias_maps.cf
>>
>> Also show transaction logs.
>
> Sorry I made a mistake in the postmap command, this is the output:

you msut execute these commands in the directory where the .cf files 
are. so do a

# cd /path/to/config_directory

first.

>
> root <at> servername:/etc/postfix# postmap -q example.com 
> mysql:/etc/postfix/mysql_relay_domains_maps.cf
> @example.com
>
> root <at> servername:/etc/postfix# postmap -q foo <at> example.com 
(Continue reading)

chantal | 14 May 16:33
Picon
Favicon

Re: relay_recipient_maps doens't work

Quoting mouss <mouss <at> netoyen.net>:

> chantal <at> antenna.nl wrote:
>>>>
>>>>
>>>>
>>>
>>> chose an address that does not exist in your relay recipient maps,
>>> let's say foo <at> example.com (of course, example.com must be a relay
>>> domain) and post the results of the following three commands.
>>>
>>> # postmap -q example.com mysql:mysql_relay_domains_maps.cf
>>> # postmap -q foo <at> example.com mysql:mysql_relay_maps.cf
>>> # postmap -q foo <at> example.com mysql_virtual_alias_maps.cf
>>>
>>> Also show transaction logs.
>>
>> Sorry I made a mistake in the postmap command, this is the output:
>
> you msut execute these commands in the directory where the .cf files
> are. so do a

I noticed, have a look at my previous post :)

>
> # cd /path/to/config_directory
>
> first.
>
>>
(Continue reading)

mouss | 14 May 17:09

Re: relay_recipient_maps doens't work

chantal <at> antenna.nl wrote:
> [snip]
> root <at> servername:/etc/postfix# postmap -q example.com 
> mysql:/etc/postfix/mysql_relay_domains_maps.cf
> @example.com
>
> root <at> servername:/etc/postfix# postmap -q foo <at> example.com 
> mysql:/etc/postfix/mysql_relay_maps.cf
>
> root <at> servername:/etc/postfix# postmap -q foo <at> example.com 
> mysql:/etc/postfix/mysql_virtual_alias_maps.cf
>
> this looks normal to me, so why doesn't it work? Do I need to adjust 
> some setting that reject is the default maybe?
>

looks ok so far. what happens to the message that should be rejected? 
please show logs for the full transaction (from the time you send it 
until it bounces or whatever happens).

also show master.cf (remove the "docs" at start of the file) so that we 
can see if recipient validation is disabled somewhere.

chantal | 14 May 15:28
Picon
Favicon

Re: relay_recipient_maps doens't work


Quoting mouss <mouss <at> netoyen.net>:

> chantal <at> antenna.nl wrote:
>> Hi list,
>>
>> I want to use relay_recipient_maps on a postfix 2.5.1 relay server   
>>  but it doens't appear to be doing anything. I want to accept mail   
>>  for existing users only but it accepts mail for all users.
>>
>> this is postconf -n
>>
>> append_at_myorigin = no
>> append_dot_mydomain = no
>> biff = no
>> config_directory = /etc/postfix
>> content_filter = smtp-amavis:[127.0.0.1]:10024
>> inet_interfaces = all
>> local_recipient_maps =
>> mailbox_size_limit = 0
>> message_size_limit = 25000000
>> mydestination =
>> myhostname = server.domain.com
>> mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
>> myorigin = domain.com
>> readme_directory = no
>> recipient_delimiter = +
>> relay_domains = mysql:$config_directory/mysql_relay_domains_maps.cf
>> relay_recipient_maps = mysql:$config_directory/mysql_relay_maps.cf
>> smtp_host_lookup = native,dns
(Continue reading)


Gmane