On 03/05/04 17:44 +0530, Varun Varma wrote: <snip some local user thread>
I agree. Which is why on postfix you should use:
http://www.postfix.org/rewrite.html#luser_relay
Please *understand* how Postfix works. Please understand the difference between local and virtual users, and catchall accounts.
Sigh...Irony at it's best.
Pasting from the Postfix documentation for luser_relay:
# The luser_relay parameter specifies an optional destination address # for unknown recipients. By default, mail for [EMAIL PROTECTED] # and [EMAIL PROTECTED] is returned as undeliverable. # # The following expansions are done on luser_relay: $user (recipient # username), $shell (recipient shell), $home (recipient home directory), # $recipient (full recipient address), $extension (recipient address # extension), $domain (recipient domain), $local (entire recipient # localpart), $recipient_delimiter. Specify ${name?value} or # ${name:value} to expand value only when $name does (does not) exist. # # luser_relay works only for the default Postfix local delivery agent. # # NOTE: if you use this feature for accounts not in the UNIX password # file, then you must specify "local_recipient_maps =" (i.e. empty) in # the main.cf file, otherwise the SMTP server will reject mail for # non-UNIX accounts with "User unknown in local recipient table". # #luser_relay = [EMAIL PROTECTED] #luser_relay = [EMAIL PROTECTED] #luser_relay = admin+$local -------END PASTE------
Note that luser_relay specifies a single local address. ^^^^^^^^ The problem is that these accounts are not local.
No it doesn't. The RHS of luser_relay _does not have to specify a local account_ - We have been using it for over a year to send mails to offsite addresses in case the user is not found in the local database.
Maybe the "other.host" in the example with "luser_relay = [EMAIL PROTECTED]" should have given you a clue.
And then, please take the time to understand how expansions work and you will see why this is an elegant way to solve the problem the OP has, if he uses Postfix.
-- Regards, Varun Varma --------------------------------------- Mindframe Software & Services Pvt. Ltd. http://www.mindsw.com ---------------------------------------
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help