This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[SOLVED] Postfix ignoring Alias table
#1
[SOLVED] Postfix ignoring Alias table
Hi there,
please, help, trying to figure out a very strange problem.

My server is ignoring the postfix's "alias" table. It was working, nothing changed (config files). Everything original from Sentora installation. Sentora creates correctly the table records.

Alias example:
address=john@mydomain.com
goto=foo@mydomain.com

Postfix returns a "user unknown" error on john@mydomain.com.

The only thing is that there's a Distribution List with >20 destinations. But I've tried to remove it, no effect.

Everything on "alias" table is just ignored. If I create a real box ("mailbox" table) everything goes ok.

No typos detected. Checked a zillion times. This is driving me crazy.
Any ideas how to fix or debug this?  Huh

Thank you.

-----------------

virtual_alias_maps = proxy:mysql:/etc/sentora/configs/postfix/mysql-virtual_alias_maps.cf,                     regexp:/etc/sentora/configs/postfix/virtual_regexp

query = SELECT goto FROM alias WHERE address='%s' AND active = '1'

If I run the query manually:
SELECT goto FROM alias WHERE address='john@mydomain.com' AND active = '1'
returns correctly foo@mydomain.com
Thanks given by:
#2
RE: [SOLVED] Postfix ignoring Alias table
Ops, my mistake Sad

I have disabled Amavisd to use an external anti-spam (MailCleaner).
I forgot to disable the receive_override_options on master.cf

smtp inet n - n - - smtpd
-o smtpd_sasl_auth_enable=yes
# -o content_filter=smtp-amavis:127.0.0.1:10024
# -o receive_override_options=no_address_mappings

Well, thanks anyway
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
user: 'postfix' host: 'localhost' (Got an error reading communication packets) cezars 0 2 ,780 02-01-2022, 08:58 PM
Last Post: cezars
Postfix mail.log to database stikekar 2 8 ,231 03-02-2019, 01:22 AM
Last Post: TGates
Using ssl certificate for Postfix and Dovecot in multiple domains. davi-dns 9 36 ,236 12-03-2018, 05:13 PM
Last Post: fearworks

Forum Jump:


Users browsing this thread: 2 Guest(s)