LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-27-2006, 04:55 AM   #136
mansur
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Rep: Reputation: 0

Sorry for late response.
my configuration is

sendmail-8.12.10-1.1.1
cyrus-sasl-2.1.15-6
openssl-0.9.7a-33.10
I want my mobile users to

In fact now i was able to connect but I am not able to send mail the sserver is rejecting the mail giving out this error message
config error: mail loops back to me (MX problem?)
554 5.3.5 Local configuration error
 
Old 11-28-2006, 11:32 AM   #137
bdmiller
LQ Newbie
 
Registered: Nov 2004
Posts: 2

Rep: Reputation: 0
I just thought I'd mention that I've been viewing a number of sites trying to get my sendmail server to relay my local mail (all coming from one account)to gmail. There are a number of HOWTOs roaming the net out there, and almost all of them suggst a one-line authinfo file, which never worked for me. The key to success for me was using a two-line authinfo file as below:


Quote:
AuthInfo:smtp.gmail.com "U:ME@gmail.com" "I:ME@gmail.com" "P:MYPASSWORD"
AuthInfo: "U:ME@gmail.com" "P:MYPASSWORD" "M:PLAIN"
This corroborates SiegeX's authinfo info, and since there seem to be a number of people trying to relay to gmail, I hope it helps some of them.

Last edited by bdmiller; 11-28-2006 at 11:33 AM.
 
Old 01-06-2007, 04:29 PM   #138
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Rep: Reputation: 36
i have a problem in sending mail through my server from outside of my local network
i have installed slackware 11 on the server and the same distro on my laptop
and now i'm at my girlfriends, trying to send mail through my smtp server
but it just wont accept my password
this is my output of the [/tmp/sendtmp]:
29259 >>> 220 x.rootservers.org ESMTP Sendmail 8.13.8/8.13.8; Sat, 6 Jan 2007 23:34:17 +0100
29259 <<< EHLO [192.168.2.111]
29259 >>> 250-x.rootservers.org Hello BSN-61-6-13.dial-up.dsl.siol.net [86.61.6.13], pleased to meet you
29259 >>> 250-ENHANCEDSTATUSCODES
29259 >>> 250-PIPELINING
29259 >>> 250-8BITMIME
29259 >>> 250-SIZE
29259 >>> 250-DSN
29259 >>> 250-ETRN
29259 >>> 250-AUTH DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
29259 >>> 250-STARTTLS
29259 >>> 250-DELIVERBY
29259 >>> 250 HELP
29259 <<< STARTTLS
29259 >>> 220 2.0.0 Ready to start TLS
29259 <<< EHLO [192.168.2.111]
29259 >>> 250-x.rootservers.org Hello BSN-61-6-13.dial-up.dsl.siol.net [86.61.6.13], pleased to meet you
29259 >>> 250-ENHANCEDSTATUSCODES
29259 >>> 250-PIPELINING
29259 >>> 250-8BITMIME
29259 >>> 250-SIZE
29259 >>> 250-DSN
29259 >>> 250-ETRN
29259 >>> 250-AUTH DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
29259 >>> 250-DELIVERBY
29259 >>> 250 HELP
29259 <<< AUTH CRAM-MD5
29259 >>> 334 PDM1MjM1MTc5MDQuMTA0OTUwNThAeC5yb290c2VydmVycy5vcmc+
29259 <<< YWRtaW4gYWQ4Y2I4ZTQxZDVhOGU0NzBiMzAxYjM3Mjk5YjQ4MWE=
29259 >>> 535 5.7.0 authentication failed
29259 <<< AUTH PLAIN AGFkbWluAHNzVDVmbzE5dXZubQ==
29259 >>> 535 5.7.0 authentication failed
29259 <<< AUTH LOGIN
29259 >>> 334 VXNlcm5hbWU6
29259 <<< YWRtaW4=
29259 >>> 334 UGFzc3dvcmQ6
29259 <<< c3NUNWZvMTl1dm5t
29259 >>> 535 5.7.0 authentication failed
29259 <<< [EOF]
29259 >>> 421 4.4.1 x.rootservers.org Lost input channel from BSN-61-6-13.dial-up.dsl.siol.net [86.61. 6.13]

so, x.rootservers.org is the server
86.61.6.13 is my current IP at my girlfriends
and...192.168.2.111 is the local IP at my girlfriends cuz we're using an wireless router here
the password is correct 1000% sure

edit: fixed
edit2: allways post how you solved the problem, you never know when you'll be stuck at the same problem
wish i would reported how i solved it back then

Last edited by Tux-Slack; 04-12-2007 at 03:42 PM.
 
Old 05-09-2007, 12:33 PM   #139
forrie
Member
 
Registered: Sep 2003
Distribution: RedHat
Posts: 37

Rep: Reputation: 15
Specifying AUTH information in SMTP HEADERS

What are the directives for sendmail.mc to display authenticated-by info in the SMTP headers - which is sometimes useful to have.

I've seen some ISPs insert an extra X- header with this info.
 
Old 05-10-2007, 02:06 PM   #140
bonecrusher
Member
 
Registered: Mar 2004
Location: St. Louis, MO
Distribution: Slackware-current, Ubuntu Server, Gentoo
Posts: 207

Rep: Reputation: 30
Quote:
Originally Posted by forrie
What are the directives for sendmail.mc to display authenticated-by info in the SMTP headers - which is sometimes useful to have.

I've seen some ISPs insert an extra X- header with this info.

Just off the top of my head I think this could be accomplished with procmail (procmailrc)..?

ie:
Code:
# Add X-Authenticated-By: header.
:0 fhw
* ! ^X-Authenticated-By:
| $FORMAIL -a "X-Authenticated-By: $AUTHHOST"

Well or something along those lines? I am just trying to point you inm the right direction, (of course this may not be what you want.) I haven't seen a sendmail FEATURE/etc that does this... but I could definitely be wrong. It may be something specific to the compile?

And beyond that I am not sure how to extract the info you need to add if using procmail..

there is more to it (procmail wise) so look here for a good example:
linuxmafia.com

Last edited by bonecrusher; 05-10-2007 at 02:19 PM.
 
Old 05-10-2007, 03:06 PM   #141
forrie
Member
 
Registered: Sep 2003
Distribution: RedHat
Posts: 37

Rep: Reputation: 15
Hi there, thanks for the suggestion.

I'm referring to insertion of that header in the MTA during delivery. I don't use Procmail here (Cyrus). Well, it could be done, with a lot of effort, but I think the right place to do it is in the *.mc


Thanks
 
Old 09-02-2007, 06:24 PM   #142
rvicker
Member
 
Registered: Jul 2005
Distribution: Fedora
Posts: 34

Rep: Reputation: 15
Question

Looks like the place to find sendmail solutions.

I am trying to get a Fedora system to send all the system mail (cron, logwatch...) to my external hosting site.

I have the aliases set up but am having a hard time with the authentication with the hosting server.

I am using the two line authinfo of

Quote:
AuthInfo:apollo.lunarpages.com "U:me@mydomain.com" "I:me@mydomain.com" "P:secret" "M:PLAIN DIGEST-MD5 CRAM-MD5 LOGIN"
AuthInfo: "U:me@mydomain.com" "I:me@mydomain.com" "P:secret" "M:PLAIN DIGEST-MD5 CRAM-MD5 LOGIN"
sendmail.mc has:

Quote:
define(`SMART_HOST', `[apollo.lunarpages.com]')dnl
FEATURE(`authinfo',`hash -o /etc/mail/auth/authinfo')dnl
maillog shows:

Quote:
Sep 2 17:47:29 r2d2 sendmail[22864]: STARTTLS=client, relay=apollo.lunarpages.com., version=TLSv1/SSLv3, verify=FAIL, cipher=AES256-SHA, bits=256/256
Sep 2 17:47:31 r2d2 sendmail[22864]: l82MlQ4U022862: to=<me@mydomain.com>, ctladdr=<root@r2d2.mine.local> (0/0), delay=00:00:05, xdelay=00:00:05, mailer=relay, pri=120334, relay=apollo.lunarpages.com. [209.200.229.60], dsn=5.1.1, stat=User unknown
Sep 2 17:47:31 r2d2 sendmail[22864]: l82MlQ4U022862: l82MlV4U022864: DSN: User unknown
Sep 2 17:47:32 r2d2 sendmail[22864]: l82MlV4U022864: to=me@mydomain.com, delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=31572, relay=apollo.lunarpages.com. [209.200.229.60], dsn=5.0.0, stat=Service unavailable
Sep 2 17:47:32 r2d2 sendmail[22864]: l82MlV4U022864: l82MlV4V022864: return to sender: Service unavailable
Sep 2 17:47:33 r2d2 sendmail[22864]: l82MlV4V022864: to=me@mydomain.com, delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=32596, relay=apollo.lunarpages.com. [209.200.229.60], dsn=5.0.0, stat=Service unavailable
Sep 2 17:47:33 r2d2 sendmail[22864]: l82MlV4U022864: Losing ./qfl82MlV4U022864: savemail panic
Sep 2 17:47:33 r2d2 sendmail[22864]: l82MlV4U022864: SYSERR(root): savemail: cannot save rejected email anywhere
I would prefer that all the from and return addresses were @mydomain.com but that is another day's post.

Thanks.
 
Old 09-27-2007, 02:37 AM   #143
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Rep: Reputation: 31
Ok, I have a little problem. I did this little tutorial for SMTP AUTH. I got tls working. However this server is in my dorm room now, and if I connect to my ISP mail server from home from my dorm I get a message sent back to me saying:
Code:
   ----- Transcript of session follows -----
... while talking to myhomeISP.net.:
>>> DATA
<<< 591  mail from non-client IP addresses prohibited without authentication.. No mail will be accepted
554 5.0.0 Service unavailable
<<< 554 no valid RCPT address specified
I was curious if there is a way to do this through some other source, such as gmail or something of the like? Does it HAVE to be through your current ISP's mail server?

Thank you for your time,
DragonM15

P.S. This error message only comes to me when I am trying to send messages to the outside world. If I email another account on my server all is well.

Last edited by DragonM15; 09-27-2007 at 02:38 AM.
 
Old 09-27-2007, 05:28 AM   #144
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Rep: Reputation: 36
You can use any remote SMTP server to where you have access/sending rights. If you have a registered username on gmail then you can use it. But gmail can be a beotch because they use SSL and don't accept normal connections and this tutorial doesn't cover that.
The problem is that you didn't authenticate properly, contact your ISP what kind of authentication do they use, if they use plain text passwords or md5 encrypted ones or any other and then edit you /etc/mail/authinfo and hash it then just like it says in this great tutorial.

My ISP usess plain text passwords so my authinfo looks like that:
AuthInfo:mail.*.net "U:myUserName" "P:myPassword" "M:PLAIN"
AuthInfo: "U:myUserName" "P:myPassword" "M:PLAIN"

Note that the second line must still exist in that file for some reason which I forgot, but it's well explained in this tutorial.
 
Old 09-27-2007, 10:27 AM   #145
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Rep: Reputation: 31
ok, I ran telnet to my ISP's mail server and ran the command 'ehlo mail.myisp.net' and I get the response:
Code:
250-HELP
250-PIPELINING
250-ETRN
250-DSN
250-TURN
250-ATRN
250-SIZE 20971520
250-AUTH=LOGIN
250-AUTH LOGIN PLAIN CRAM-MD5 DIGEST-MD5
250-8BITMIME
250 EHLO
So, 2 questions... is it normal for AUTH=LOGIN to be in there twice? The 2nd time its in there it has the list of authentications it supports correct? 'LOGIN PLAIN CRAM-MD5 DIGEST-MD5'? I will try changing my authentication protocol to LOGIN and see if that fixes the problem.

Thanks,
DragonM15
 
Old 09-27-2007, 10:47 AM   #146
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Rep: Reputation: 31
Ok, update. I changed my authinfo file to include LOGIN PLAIN CRAM-MD5 or DIGEST-MD5 and they all came back with the same error message. I know for a fact that my username and password are correct. My formatting is correct as well, as shown here:
Code:
AuthInfo:mail.myisp.net "U:username@myisp.net" "P:mypassword" "M:DIGEST-MD5"
AuthInfo: "U:username@myisp.net" "P:mypassword" "M:DIGEST-MD5"
My sendmail.mc file includes the line:
Code:
define(`SMART_HOST',`[mail.qosi.net]')dnl
So I am unsure what the problem is.

Thanks,
DragonM15
 
Old 09-27-2007, 01:07 PM   #147
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Rep: Reputation: 36
Try droping the brackets:
dnl define(`SMART_HOST',`mail.siol.net')

And make sure that your ISP demands username with hostname(user@host).
Maybe it just needs the username without the hostname(user)
I mean in authinfo "U:u@h" try "U:u"

Last edited by Tux-Slack; 09-27-2007 at 01:08 PM.
 
Old 09-27-2007, 02:25 PM   #148
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Rep: Reputation: 31
Quote:
Originally Posted by Tux-Slack View Post
Try droping the brackets:
dnl define(`SMART_HOST',`mail.siol.net')

And make sure that your ISP demands username with hostname(user@host).
Maybe it just needs the username without the hostname(user)
I mean in authinfo "U:u@h" try "U:u"
I tried dropping the brackets, and I ma sure that my isp demands user@host because one ISP bought out the other, and so they have 2 domains for their mailserver (If that makes sense). But I tried it without the hostname just in case, and it still gives me the same error. Also, I tried all the AUTH protocols that my ISP supports.
I did notice one thing when I telnet into my ISP's mail server. When I run the command: 'ehlo myisp.net' it returns a line that kinda confused me:
Code:
$ telnet mail.myisp.net 25
Trying 10.10.10.10...
Connected to mail.myisp.net.
Escape character is '^]'.
220 ispthatboughtoutmyisp.com ESMTP.  You are not authenticated.
ehlo mail.myisp.net
250-ispthatboughtoutmyisp.com your name is not mail.myisp.net
250-HELP
250-PIPELINING
250-ETRN
250-DSN
250-TURN
250-ATRN
250-SIZE 20971520
250-AUTH=LOGIN
250-AUTH LOGIN PLAIN CRAM-MD5 DIGEST-MD5
250-8BITMIME
250 EHLO
so if I try 'ehlo ispthatboughtoutmyisp.com' it returns:
Code:
250-ispthatboughtoutmyisp.com your name is not ispthatboughtoutmyisp.com
250-HELP
250-PIPELINING
250-ETRN
250-DSN
250-TURN
250-ATRN
250-SIZE 20971520
250-AUTH=LOGIN
250-AUTH LOGIN PLAIN CRAM-MD5 DIGEST-MD5
250-8BITMIME
250 EHLO
Ideas on this?

Thanks,
DragonM15

Last edited by DragonM15; 09-27-2007 at 02:35 PM.
 
Old 09-27-2007, 02:49 PM   #149
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Rep: Reputation: 36
I get both LOGIN and PLAIN only.
After you say ehlo, try typing in:
auth cram-md5
And see if it returns 504 Unsupported authentication mechanism

If it does then it's using LOGIN method only.

Hmm...mail from non-client IP prohibited without auth...
You're not a client from that mail server?
 
Old 09-27-2007, 07:03 PM   #150
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Rep: Reputation: 31
I telneted to my mail server, ran auth cram-md5 and it returned:
Code:
auth cram-md5
334 PDE3MjkyMDguMTE5MDkzNzU4N0Bkb25vYmkuY29tPg==
So cram-md5 is supported.

I am trying to get this to work in my dorm. The mail server that I am trying to relay through is my ISP at home (not the dorms). But it should still work, shouldn't it?

Thanks,
DragonM15
 
  


Reply

Tags
att, auth, dsl, howto, sendmail, smtp, ssl, yahoo


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
DISCUSSION: Sendmail SMTP AUTH Howto SiegeX LinuxAnswers Discussion 10 09-17-2007 07:49 PM
sendmail 8.13.4-2 smtp auth nightmare kz26 Linux - Security 1 10-30-2005 01:57 PM
Sendmail SMART_HOST + SMTP AUTH Howto SiegeX Slackware 15 09-06-2004 01:42 AM
SMTP Auth for sendmail wolftechmn Linux - Networking 4 11-27-2003 01:17 PM
Sendmail / SMTP Auth cleaner416 Linux - Networking 3 10-06-2003 10:40 AM


All times are GMT -5. The time now is 03:04 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration