Keyboard jacked up there, sorry, sent before I meant it to.

First question you need to have answered is does your ISP allow outbound
SMTP traffic. Mine happens to (Qwest), so I have daily reports mailed from
my home server to my gmail account. Once you have answered that, if postfix
is setup, you should be good to go.  Postfix does a MX lookup for the
destination email address (gmail.com, for example), and sends to one ofthe
IPs listed.The only thing you might have to additionally set up is a reverse
DNS entry. Dynamic DNS hosting, such as dyndns or no-ip.com are free for
this kind of set up. You may need this because many mail servers do a
reverse lookup of your IP when they accept mail to make sure it is coming
from yourdomain. Meaning, I send an email from my lin box from mydomain.com,
my IP needs to map back to mydomain.com. After you set up a DNS domain, in
the /etc/postfix/main.cf file, make sure your registered domain is listed in
"myhostname = myregistereddomain.com", then restart postfix.

A simple way to test for allowed SMTP traffic is to telnet to you test
destination. Get the IP by doing a dig or nslookup:
dig -t mx gmail.com

grab one of the IPs listed (gmail-smtp-in.l.google.com. 54  IN      A
209.85.217.65)

type:
telnet 209.85.217.65 25 (there HAS to be a space then 25 at the end, which
is the SMTP port)

At the prompt:

Trying 209.85.217 .65...
> Connected to mail-gx0-f65.google.com (209.85.217.65).
> Escape character is '^]'.
> 220 mx.google.com ESMTP 21si21103927gxk.6
>

type:
helo myregistereddomain.com (yes, 1 "L" in that helo)

The response from gmail:

> 250 mx.google.com at your service
>

type:
mail from:<[email protected]>

The response:

> 250 2.1.0 OK 21si21103927gxk.6
>

type:
rcpt to:<[email protected]>

The response:

> 250 2.1.5 OK 21si21103927gxk.6
>

type:
data <hit return>
test message
. <single period on new line then return to end message>
quit <return>

If you connected, then you are probably allowed by your ISP. If the email
arrives and you don't get any errors when telneting into your destination,
then your IP maps back to your host, or the destination server doesn't care.
If you are not using gmail as your test destination, drop the <>'s around
the addresses if the server gives you errors.


Jeremiah E. Bess
Network Ninja, Penguin Geek, Father of four


>
>
> On Wed, May 27, 2009 at 04:38, Kenneth Holter <[email protected]>
wrote:
>>
>> Hello all.
>>
>>
>> I'm sorry if this is a very basic question, but here it goes: How do I
set up a my linux boxes to enable them to send mail to my mail account
(Outlook account)? I've got it working by installing and configuring
Postfix, but not sure how to do it without Postfix (where do I define the
mail relay server/exchange server?).
>>
>> Regards,
>> kenneho
>> >>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
-~----------~----~----~----~------~----~------~--~---

Reply via email to