From: Tomas K. <to...@us...> - 2005-11-03 19:10:59
|
> Hi, > > I have a Debian server, running Exim 4.5x and Squirrelmail 1.4.5, all > debian packaged. > > The hosted local domains are la-roseraie.be and suntechweb.com. They are > virtual domains, and they receive mail correctly. > > ############# part of exim4.conf ##################### > .ifndef MAIN_LOCAL_DOMAINS > MAIN_LOCAL_DOMAINS = @:localhost:dsearch;/etc/exim4/virtual_domains > .endif > domainlist local_domains = MAIN_LOCAL_DOMAINS > ###################################################### > > $ ls -l /etc/exim4/virtual_domains > -rw-r--r-- 1 root root 22 Oct 18 15:12 la-roseraie.be > -rw-r--r-- 1 root root 93 Oct 18 15:01 suntechweb.com > > > The URL of the webmail is either http://webmail.la-roseraie.be or > http://webmail.suntechweb.com. The webmail is on the same machine as the > Exim. > > When I login in the shell (SSH) and I try to send a mail to one of my > adress, let's say rk...@or..., it succeds. Orange.fr is not hosted > on the server. > > When I use the webmail, set to use localhost, the relay is not > permitted! ... > > These are two attempts where i set and unset the Sender address in > squirrelmail. Relaying does not depend on sender's email address. Relay restrictions depend on sender's ip address, recipient's address and authentication state. > Would you help me to find out the problem? > > The question is > Why does Exim consider that the webmail is not on the local machine? when you use /usr/bin/mail, you are using local program. When you use default SquirrelMail configuration, you are using tcp connection. Switch SquirrelMail to /usr/sbin/sendmail or configure relaying in exim. http://www.exim.org/howto/relay.html -- Tomas |