Thank you for our answer.

This server was set up with the default domain in the hosteddomains file.

Now I need to do program aliases (piping for couriersrs).

It seems a program alias only works when the default domain is in the  
locals file - thus courier strips off the domain part of those  
addresses before looking up users.

How it is possible to keep the default domain in the hosteddomains  
file and do program aliases like:

[email protected]: |/usr/sbin/couriersrs [email protected]



Idézem/Quoting Sam Varshavchik <[email protected]>:

> Szépe Viktor writes:
>
>> Good morning!
>>
>> Could you please help me.
>>
>> $ cat defaultdomain
>>
>> olm.hu
>>
>> And the default domain is not a local domain
>>
>> $ cat locals
>>
>> localhost
>> web.olmunkaido.hu
>>
>> Now every program alias (piping) goes bad:
>>
>> [email protected]: |/usr/local/bin/process.sh
>>
>> causes:
>>
>> courieresmtpd: error,relay=::ffff:95.140.33.67,from=<[email protected]>,
>> to=<[email protected]>: 550 User
>> <.xalias/an@[email protected]> unknown
>>
>>
>> Is there a way to get around it?
>> Thank you!
>
> It is unclear what your intentions are. Generally, the domain listed  
> in the defaultdomain must be listed either in locals, or in  
> hosteddomains. Either your defaultdomain setting is wrong, or your  
> locals/hosteddomains is wrong, but only you can figure out which one  
> is wrong, since only you know what your mail server needs to do with  
> any given domain.
>
> See the courier(8) man page for the description of what each  
> configuration file does. See the makealiases(8) man page for the  
> description of how aliases are to be configured. As described in the  
> courier(8) man page, makealiases must be rerun after changing  
> defaultdomain, or several other configuration files. You need to  
> review the documentation in courier(8), for each configuration file  
> you're using.


Szépe Viktor
-- 
+36-20-4242498  [email protected]  skype: szepe.viktor
Budapest, XX. kerület





------------------------------------------------------------------------------
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to