OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Creating alias

From: mouss (mlist.onlyfree.fr)
Date: Wed Jan 02 2008 - 15:27:37 CST


Carlos Sánchez wrote:
> Hi,
>
> I am new using postfix and I want to create an alias that contain all my users.
>
> my configuration is:
> alias_maps = mysql:/path/to_file/mysql-aliases.cf
>
> I add this record in the table alias:
>
> INSERT INTO postfix_alias_table VALUES (' ','alluser',':include:/path/to/aliasfile') ;
>
> And my aliasfile have:
> user1example.com
> user2example.com
> user3example.com
>
> my error is:
>
> NOQUEUE: reject: RCPT from machine1[10.10.xxx.xxx]: 550 5.1.1 <alluserexample.com>: Recipient address rejected: User unknown; from=<user4example.com> to=<alluserexample.com> proto=ESMTP
>
> I don´t know why is this error, i think that i dont have to create a mail account alluserexample.com beacuse this is an alias.
>

The first thing to do is to read the ML welcome message, which
recommends reading
        http://www.postfix.org/DEBUG_README.html#mail

saying "it is an alias" is useless for at least two reasons:

- alias_maps only works for local domains. since you didn't show
'postconf -n', we have no idea what domain class you are talking about.

- lookup maust always be tested with 'postmap -q'. if you think there is
no error in your config, then you have no problem.

Finally, what is the reason to use mysql to return an include???? since
you're going with flat files, then use /etc/aliases.