I did try with this:

smtpd_sender_restrictions = check_sender_access
proxy:mysql:/etc/postfix/mysql-virtual_domains.cf


That's the domain table configuration file that's working fine on
"virtual_mailbox_domains", but it didnt work for this:

451 4.3.5 Server configuration error



Francisco M. Marzoa Alonso escribió:
> Hello Magnus,
>
> Thanks a lot. I saw that solution before searching on Internet, but I
> would like something that gets my domains directly from my domain table
> on my Mysql database instead of putting all domains in a new file.
>
> May be any manner of using a database table within "hash:..." instead of
> a file?
>
> Thank you very much,
>
>
> Magnus Bäck escribió:
>   
>> On Saturday, March 07, 2009 at 13:40 CET,
>>      "Francisco M. Marzoa Alonso" <[email protected]> wrote:
>>
>>   
>>     
>>> I've a postfix server wich uses SASL + Mysql for authentication, my
>>> own domains are mostly listed in a mysql table on that data Its
>>> working fine enough, but I want to made it a bit more restrictrive. At
>>> current time its behaviour about sending mail is as folows:
>>>
>>> FROM external domains TO my own domains -> accept
>>> FROM my own domains TO my own domains -> accept
>>> FROM my own domains TO external domains -> requires authentication
>>> FROM external domains TO external domains -> reject
>>>
>>> What I want to do is that it also requires authentication when sending
>>> from my own domains TO my own domains. What is the best way to do that?
>>>     
>>>       
>> main.cf:
>> smtpd_sender_restrictions = check_sender_access hash:/path/to/file
>>
>> /path/to/file:
>> example.com             permit_sasl_authenticated, reject
>>
>>   
>>     
>
>
>   

Reply via email to