Sending SMTP mail via mailx

Ask a Question related to Sun Solaris, Design and Development.

  1. #1

    Default Sending SMTP mail via mailx


    I am confused on how mailx actually sends mail via SMTP ... and receive
    the actual mail on Mozilla on windows2000.

    1) What confuses me is that I have not told mailx ( or sendmail for that
    matter ) the IP address or hostname of my ISP's SMTP server... but
    somehow it did ... but based on the mail headers, it seems that it did
    not actually forwarded the mail to my ISP's SMTP server, but it seems to
    have figured out the MX record from the recipient's domain name, and
    forwarded it straight to the recipient's domain name mail server.

    Is this correct ? It seems to be the only explanation on how I actually
    received the e-mail that I sent via mailx, without telling the box the
    IP address of my ISP's SMTP server.


    2) Doesn't mailx rely on a mail delivery agent / or mail transfer agent
    to actually deliver the mail via SMTP ? ... like sendmail ?




    newbie Guest

  2. Similar Questions and Discussions

    1. Problems sending mail with Windows 2003 server's SMTP server (I'm also using the integrated POP3 service)
      Hi, I am setting up POP3 accounts for my users. I am using the POP3 and SMTP services built into Windows 2003 Server Std Edition. My users can...
    2. #25357 [Com]: Mail() function is loosing cahracters when sending mail
      ID: 25357 Comment by: dj_canard at yahoo dot com Reported By: pjsmith at microtech dot co dot gg Status: Bogus...
    3. #25357 [NEW]: Mail() function is loosing cahracters when sending mail
      From: pjsmith at microtech dot co dot gg Operating system: Windows 2003, IIS, ISAPI PHP version: 4.3.3 PHP Bug Type: *Mail...
    4. Setting ACLs for aspnet user for sending smtp mail
      What permissions do I need to give to aspnet account in order for a web page to send email through a remote smtp server? The code works on one...
    5. Sending MIME through SMTP
      Maxence, SMTP (Simple Mail Transfer Protocol) is used exclusively for sending email messages (which can certainly include MIME). Could you...
  3. #2

    Default Re: Sending SMTP mail via mailx

    newbie wrote:
    >
    > I am confused on how mailx actually sends mail via SMTP ... and receive
    > the actual mail on Mozilla on windows2000.
    >
    > 1) What confuses me is that I have not told mailx ( or sendmail for that
    > matter ) the IP address or hostname of my ISP's SMTP server... but
    > somehow it did ... but based on the mail headers, it seems that it did
    > not actually forwarded the mail to my ISP's SMTP server, but it seems to
    > have figured out the MX record from the recipient's domain name, and
    > forwarded it straight to the recipient's domain name mail server.
    >
    > Is this correct ? It seems to be the only explanation on how I actually
    > received the e-mail that I sent via mailx, without telling the box the
    > IP address of my ISP's SMTP server.
    You can easily find out your ISP's SMTP server by trying
    "nslookup mailhost". If that doesn't work, run nslookup
    interactively and then type "set type=MX" and then the
    domain. You can also find a sendmail audit trail in
    /var/log/syslog.
    > 2) Doesn't mailx rely on a mail delivery agent / or mail transfer agent
    > to actually deliver the mail via SMTP ? ... like sendmail ?
    Yes, sendmail.

    -am © 2003
    Anthony Mandic Guest

  4. #3

    Default Re: Sending SMTP mail via mailx

    Anthony Mandic wrote:
    > newbie wrote:
    >
    >>I am confused on how mailx actually sends mail via SMTP ... and receive
    >>the actual mail on Mozilla on windows2000.
    >>
    >>1) What confuses me is that I have not told mailx ( or sendmail for that
    >>matter ) the IP address or hostname of my ISP's SMTP server... but
    >>somehow it did ... but based on the mail headers, it seems that it did
    >>not actually forwarded the mail to my ISP's SMTP server, but it seems to
    >>have figured out the MX record from the recipient's domain name, and
    >>forwarded it straight to the recipient's domain name mail server.
    >>
    >>Is this correct ? It seems to be the only explanation on how I actually
    >>received the e-mail that I sent via mailx, without telling the box the
    >>IP address of my ISP's SMTP server.
    >
    >
    > You can easily find out your ISP's SMTP server by trying
    > "nslookup mailhost". If that doesn't work, run nslookup
    > interactively and then type "set type=MX" and then the
    > domain. You can also find a sendmail audit trail in
    > /var/log/syslog.

    What I don't understand is ... in another network .... it gives the
    following error:

    ----- Transcript of session follows -----
    550 [email]josef.richard@xxxxxx.xx[/email]... Host unknown (Name server:
    mailhost.xxxxxx.foo: host not found)


    Why would it look for mailhost.xxxxx.foo ?


    Same error appears in /var/log/syslog
    >
    >
    >>2) Doesn't mailx rely on a mail delivery agent / or mail transfer agent
    >>to actually deliver the mail via SMTP ? ... like sendmail ?
    >
    >
    > Yes, sendmail.
    >
    > -am © 2003
    So why is that, when I shutdown sendmail ( /etc/init.d/sendmail/stop ),
    that mailx is still able to deliver SMTP mail ?


    newbie Guest

  5. #4

    Default Re: Sending SMTP mail via mailx

    newbie wrote:
    > What I don't understand is ... in another network .... it gives the
    > following error:
    >
    > ----- Transcript of session follows -----
    > 550 [email]josef.richard@xxxxxx.xx[/email]... Host unknown (Name server:
    > mailhost.xxxxxx.foo: host not found)
    >
    > Why would it look for mailhost.xxxxx.foo ?
    Because "mailhost" is a default. Does that site have an MX record
    when you do an ns lookup?
    > So why is that, when I shutdown sendmail ( /etc/init.d/sendmail/stop ),
    > that mailx is still able to deliver SMTP mail ?
    Because it invokes it on the fly.

    -am © 2003
    Anthony Mandic Guest

  6. #5

    Default Re: Sending SMTP mail via mailx

    Anthony Mandic wrote:
    > newbie wrote:
    >
    >
    >>What I don't understand is ... in another network .... it gives the
    >>following error:
    >>
    >> ----- Transcript of session follows -----
    >>550 [email]josef.richard@xxxxxx.xx[/email]... Host unknown (Name server:
    >>mailhost.xxxxxx.foo: host not found)
    >>
    >>Why would it look for mailhost.xxxxx.foo ?
    >
    >
    > Because "mailhost" is a default. Does that site have an MX record
    > when you do an ns lookup?
    >
    >
    >>So why is that, when I shutdown sendmail ( /etc/init.d/sendmail/stop ),
    >>that mailx is still able to deliver SMTP mail ?
    >
    >
    > Because it invokes it on the fly.
    >
    > -am © 2003

    Thanks for the reply. I simply added mailhost into /etc/hosts:

    10.0.10.52 mailhost.xxxxxx.foo


    Last question:

    Why does sendmail looks for mailhost.xxxxxx.foo ( why the .foo at the
    end of the domain ) ? Why doesn't it use the domainname in
    /etc/resolv.conf ?

    There was no domainname entry in /etc/resolv.conf earlier, but I added
    them, and sendmail still tries to look for mailhost.xxxxxxx.foo ?

    newbie Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139