Koozali.org: home of the SME Server

Private server and gateway - Send external email?

Dale Quigg

Private server and gateway - Send external email?
« on: September 18, 2002, 12:32:57 AM »
Hi,

I have a "Private server and gateway" install of SME 5.5 U2 and am not able to send email to an external address when logged in as root using the 'mail' command.

I want to set up a cron job to email a .log file to an external email address.

First, as root, I tried;
> mail -s "Testing" user@foo.com
Test Message
^D
CC:

But the message is not delivered.  My ISP is not blocking port 25.

From the manual, it seems like "Private server and gateway" should still allow email to be sent to external receipients.  Is this true?

--- Manual snippet ---
6.9.2. Option 2: Private server and gateway
This mode is a variation of option 1 and provides the same functionality with the following differences:

Your web server is not visible to anyone outside of the local network.

Your mail server is not accessible from outside of the local network.

Additional firewall rules have been configured to drop packets for various services (such as 'ping' requests).

All services are available on the internal network. The differences are entirely in how your server is seen by the external world.

You would select this mode only if you wish to use the server as a gateway, but do not wish to publish any services to the external Internet.
--- End Manual snippet ---

I did
>nslook foo.com

and then
> telnet XXX.XXX.XXX.XXX 25
and seemed to get in, so I think that the communication should be OK.

But,  no mail is sent.

I'm really new to SME server, so any help/tips appreciated.

Thanks,
Dale

Nathan Fowler


Dale Quigg

Re: Private server and gateway - Send external email?
« Reply #2 on: September 19, 2002, 01:13:25 AM »
Thanks Nathan,

I actually saw your post when I searched the forum.  It was the basis of what I was planning to do.  When I just went to repeat the process to confirm that it didn't work, it worked correctly!  :-)

I rebooted my box once inbetween, so some change must have taken effect.

Thanks for your original post and your reply (which made me try again)!

Dale

Nathan Fowler

Re: Private server and gateway - Send external email?
« Reply #3 on: September 19, 2002, 01:23:37 AM »
Anytime, glad I could be of some help.  Be advised that some webmail clients have difficulty reading attachments when using uuencode|mail, however, Outlook/OE don't have any issues.

Charlie Brady

Re: Private server and gateway - Send external email?
« Reply #4 on: September 19, 2002, 03:06:31 AM »
Dale Quigg wrote:

> From the manual, it seems like "Private server and gateway"
> should still allow email to be sent to external receipients.
> Is this true?

Yes.

Charlie

Dale Quigg

Re: Private server and gateway - Send external email?
« Reply #5 on: September 19, 2002, 03:15:00 AM »
Thanks Charlie,

I think the problem was that I entered my ISP's SMTP IP in the configuration section
Configuration
    * Other e-mail settings

--- begin ---
The Mitel Networks server can deliver outgoing messages directly to
their destination (recommended in most cases) or can deliver them via
your Internet provider's SMTP server (recommended if you have an
unreliable Internet connection or are using a residential Internet
service). If using your Internet provider's SMTP server, specify its
 hostname or IP address below. Otherwise leave this field blank.
 Internet provider's SMTP server
____________________
--- end ---

 (Yes, I know I ignored the good advice in the description.  What can I say? :-/ )

I think that a reboot after changing this back to the default (empty) is what resolved my problem.

Thanks again,
Dale