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: a...@othervirtdomain.hu: |/usr/sbin/couriersrs forwar...@addr.ess Idézem/Quoting Sam Varshavchik <mr...@courier-mta.com>: > 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: >> >> a...@othervirtdomain.hu: |/usr/local/bin/process.sh >> >> causes: >> >> courieresmtpd: error,relay=::ffff:95.140.33.67,from=<vik...@szepe.net>, >> to=<a...@othervirtdomain.hu>: 550 User >> <.xalias/an@othervirtdomain+2...@olm.hu> 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 s...@szepe.net skype: szepe.viktor Budapest, XX. kerület ------------------------------------------------------------------------------ _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users