LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-11-2010, 09:15 AM   #16
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032

Are you sure it's not delivered? From the 2 lines you posted I cannot tell what mail got the data format error and what got delivered.
Could you please post the output of the 2 commands:
Code:
grep o5BDGq0c013850 /var/log/maillog
grep o5BDGr0c013852 /var/log/maillog
Btw your dynamic dns does not provide a PTR record of your IP, and without it most mail servers will reject or consider as spam the mail from you.
 
Old 06-11-2010, 09:41 AM   #17
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 18.04 / CentOS 7.6
Posts: 397

Original Poster
Rep: Reputation: 62
Quote:
Originally Posted by bathory View Post
Are you sure it's not delivered? From the 2 lines you posted I cannot tell what mail got the data format error and what got delivered.
Could you please post the output of the 2 commands:
Code:
grep o5BDGq0c013850 /var/log/maillog
grep o5BDGr0c013852 /var/log/maillog
Here it is: -

Code:
Jun 11 14:16:52 joshua11 sendmail[13850]: o5BDGq0c013850: from=<root@xxxxx.homelinux.org>, size=486, class=0, nrcpts=1, msgid=<201006111316.o5BDGppD013849@xxxxx.homelinux.org>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jun 11 14:16:52 joshua11 sendmail[13849]: o5BDGppD013849: to=xxxxx@hotmail.com, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30220, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (o5BDGq0c013850 Message accepted for delivery)
Jun 11 14:16:53 joshua11 sendmail[13852]: o5BDGq0c013850: to=<xxxxx@hotmail.com>, ctladdr=<root@xxxxx.homelinux.org> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=120486, relay=smtp.orangehome.co.uk. [193.252.22.138], dsn=5.6.0, stat=Data format error
Jun 11 14:16:53 joshua11 sendmail[13852]: o5BDGq0c013850: o5BDGr0c013852: DSN: Data format error
and...

Code:
Jun 11 14:16:53 joshua11 sendmail[13852]: o5BDGq0c013850: o5BDGr0c013852: DSN: Data format error
Jun 11 14:16:53 joshua11 sendmail[13852]: o5BDGr0c013852: to=xxxxx@googlemail.com, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31728, relay=smtp.orangehome.co.uk., dsn=2.0.0, stat=Sent (Ok: queued as 5280270008A8)
As you can see, I tried sending a mail to two external addresses, a hotmail one and a googlemail.com one. Either made it through.

Quote:
Originally Posted by bathory View Post
Btw your dynamic dns does not provide a PTR record of your IP, and without it most mail servers will reject or consider as spam the mail from you.
In which case, I'm probably stuffed DynDNS provides a hostname, but I'm fairly sure I need to do something else too even though it should resolve.
 
Old 06-11-2010, 01:12 PM   #18
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
My /etc/mail/authunfo looks like: -
AuthInfo:smtp.orangehome.co.uk "U:root" "I:<SMTP SERVER USER HERE>" "P:<SMTP SERVER PASSWORD HERE>" "M:LOGIN PLAIN".
I guess you mean /etc/mail/authinfo (not /etc/mail/authunfo) and you run:
Code:
makemap hash /etc/mail/authinfo < /etc/mail/authinfo
after editing the file.

Anyway you can try different variations, like
Quote:
AuthInfo:smtp.orangehome.co.uk "U:root" "I:username@mail.isp.com" "Password" "M:LOGIN PLAIN"
AuthInfo:smtp.orangehome.co.uk "U:username@mail.isp.com" "I:username@mail.isp.com" "Password" "M:LOGIN PLAIN"
where username@mail.isp.com is what you need to put in Outlook in order to use your isp mailserver (smtp.orangehome.co.uk).
You can also omit the "M:LOGIN PLAIN" part if you use:
Code:
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
in sendmail.mc

Regarding your dynamic domain, there is a MX record for it:
Quote:
dig mx joshua7.homelinux.org
<--snip-->
;; QUESTION SECTION:
;joshua7.homelinux.org. IN MX

;; ANSWER SECTION:
joshua7.homelinux.org. 60 IN MX 10 mail.football1x2.com.

;; AUTHORITY SECTION:
homelinux.org. 85654 IN NS ns5.dyndns.org.
homelinux.org. 85654 IN NS ns4.dyndns.org.
homelinux.org. 85654 IN NS ns2.dyndns.org.
homelinux.org. 85654 IN NS ns1.dyndns.org.
homelinux.org. 85654 IN NS ns3.dyndns.org.
So I guess the DSNs are going there.
 
1 members found this post helpful.
Old 06-11-2010, 01:47 PM   #19
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 18.04 / CentOS 7.6
Posts: 397

Original Poster
Rep: Reputation: 62
Well that's encouraging, thank you. I'll keep toying with it then. Didn't know I could pull up an MX record like that - neat
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
prevent to send mails to public domains in sendmail mail2mphani Linux - Security 1 03-11-2009 12:37 PM
how to configure postfix (FD5) to send mails to gmail or any different domains subramanyabs1984 Linux - Server 3 02-26-2009 01:27 AM
2 sendmail servers cannot send/receive mails to each other kool_kid Linux - Server 2 02-20-2008 07:15 AM
using cron to send mails without using the sendmail parichay Linux - Enterprise 2 10-13-2006 09:39 AM
sendmail doesnt send mails spank Linux - Newbie 12 01-07-2004 02:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration