Peter Holm wrote: > I am trying this: > > create a file "domain.com" in /etc/courier/hosteddomains/ > with content "domain.com" > run makehosteddomains > > create a file domain.com in /etc/courier/esmtpacceptmailfor.dir/ > with content "domain.com" > run makeacceptmailfor
It seemed complicate to me also, until someone on this list told me how to do it. Now I have just two files in esmtpacceptmailfor.dir: hosted and relayed. I have a script for adding hosted domains, that ends like this (after checking parameters and chdir to /etc/courier or whatever): " if [ ! "x$list" = "x" ]; then " printf "updating courier config files\n" " for DOMAIN in $list " do " printf "$DOMAIN\n" >> hosteddomains " done " cat hosteddomains |\ " awk '{print $1;}' |\ " sort |\ " uniq > esmtpacceptmailfor.dir/hosted " makeacceptmailfor " makehosteddomains " chown -R courier:courier . " fi The awk filter is needed since a few lines in hosteddomains are of the form "myserver.mydomain.tld\tmydomain.tld\n" > I notice, that after running makeacceptmailfor as root the file > esmtpacceptmailfor.dat does not belong to daemon anymore, but root. I noticed that too, just chown. Perhaps there's a better way. Ciao Ale _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users