[exim] sending mail through squirrelmail

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[exim] sending mail through squirrelmail

Rakotomandimby Mihamina-2
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 [hidden email], it succeds. Orange.fr is not hosted
on the server.

When I use the webmail, set to use localhost, the relay is not
permitted!

############# Exim4 main log ###################
2005-11-03 21:27:16 H=localhost (webmail.suntechweb.com) [127.0.0.1]
F=<[hidden email]> rejected RCPT <[hidden email]>: relay not
permitted  
2005-11-03 21:27:16 unexpected disconnection while reading SMTP command
from localhost (webmail.suntechweb.com) [127.0.0.1]
2005-11-03 21:27:57 H=localhost (webmail.suntechweb.com) [127.0.0.1]
F=<> rejected RCPT <[hidden email]>: relay not permitted  
2005-11-03 21:27:57 unexpected disconnection while reading SMTP command
from localhost (webmail.suntechweb.com) [127.0.0.1]
###############################################

These are two attempts where i set and unset the Sender address in
squirrelmail.

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?

I wonder, because I get the same error message when I try to use this
MTA from anywhere _without_ SMTP_AUTH.

Thank you very much

--
Administration & Formation à l'administration
de serveurs dédiés:
http://www.google.fr/search?q=aspo+infogerance+serveur


--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/
Reply | Threaded
Open this post in threaded view
|

Re: [SM-USERS] sending mail through squirrelmail

Tomas Kuliavas
> 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 [hidden email], 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


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
--
squirrelmail-users mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: [hidden email]
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users