LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can't send using sendmail via my ISP's relay service (https://www.linuxquestions.org/questions/linux-networking-3/cant-send-using-sendmail-via-my-isps-relay-service-630087/)

DavidWilliamson 03-23-2008 05:08 PM

Can't send using sendmail via my ISP's relay service
 
I am trying to send emails from my Linux server via my ISP's relay service.

They're not coming through when I send to one of my own email accounts and try to collect it via my POP client.

If I run this command:
sendmail -bv test@mydomain.net

Obviously I'm using a real email address.

Then I get this returned...

test@mydomain.net... deliverable: mailer relay, host relay.gradwell.net., user test@mydomain.net

Looks promising as relay.gradwell.net is the service that I want to use.

However, when I use this command:
sendmail -X ~/sendmail.log test@mydomain.net

Then here is the content of the generated log file. What's suspicious about this is that the only server that it mentions is my local one. There's no mention of the relay. Why?

31262 <<< adf
31262 <<< .
31262 === CONNECT [127.0.0.1]
31262 <<< 220 linux.varilink.co.uk ESMTP Sendmail 8.12.10/8.12.10/SuSE Linux 0.7; Sun, 23 Mar 2008 20:41:28 GMT^M
31262 >>> EHLO linux.varilink.co.uk
31262 <<< 250-linux.varilink.co.uk Hello localhost [127.0.0.1], pleased to meet you^M
31262 <<< 250-ENHANCEDSTATUSCODES^M
31262 <<< 250-PIPELINING^M
31262 <<< 250-8BITMIME^M
31262 <<< 250-SIZE^M
31262 <<< 250-DSN^M
31262 <<< 250-ETRN^M
31262 <<< 250-AUTH LOGIN^M
31262 <<< 250-DELIVERBY^M
31262 <<< 250 HELP^M
31262 >>> MAIL From:<root@linux.varilink.co.uk> SIZE=4 AUTH=root@linux.varilink.co.uk
31262 <<< 250 2.1.0 <root@linux.varilink.co.uk>... Sender ok^M
31262 >>> RCPT To:<test@mydomain.net>
31262 >>> DATA
31262 <<< 250 2.1.5 <test@mydomain.net>... Recipient ok^M
31262 <<< 354 Enter mail, end with "." on a line by itself^M
31262 >>> Received: (from root@localhost)
31262 >>> by linux.varilink.co.uk (8.12.10/8.12.10/Submit) id m2NKfQKB031262
31262 >>> for test@mydomain.net; Sun, 23 Mar 2008 20:41:26 GMT
31262 >>> Date: Sun, 23 Mar 2008 20:41:26 GMT
31262 >>> From: root <root@linux.varilink.co.uk>
31262 >>> Message-Id: <200803232041.m2NKfQKB031262@linux.varilink.co.uk>
31262 >>>
31262 >>> adf
31262 >>> .
31262 <<< 250 2.0.0 m2NKfSaC031263 Message accepted for delivery^M
31262 >>> QUIT
31262 <<< 221 2.0.0 linux.varilink.co.uk closing connection^M

datopdog 03-24-2008 08:09 AM

You need to look at the actual log file on how sendmail delivers the message, this is just your smtp conversation with your own sendmail instance which should first accept the message then deliver it via your relay server.


All times are GMT -5. The time now is 12:56 AM.