LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-25-2010, 10:09 AM   #1
SteveInTallyFL
Member
 
Registered: May 2008
Location: Tallahassee, FL
Distribution: RHEL4, RHEL 5, OEL4, OEL5
Posts: 65

Rep: Reputation: 17
RHEL 4 AS Using 3rd-Party Mail Relay: Config Help Needed


Application on this server will generate messages to user and use mailx to format them. We are using Sendmail as the MTA. The server is not in a domain. We are using a Rackspace email account as the relay. The server talks to a DNS that has an mx record pointing to Rackspace.

Code:
# dig emailsrvr.com mx

; <<>> DiG 9.2.4 <<>> emailsrvr.com mx
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61132
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;emailsrvr.com.                 IN      MX

;; ANSWER SECTION:
emailsrvr.com.          28800   IN      MX      20 mx2.emailsrvr.com.
emailsrvr.com.          28800   IN      MX      10 mx1.emailsrvr.com.

;; Query time: 53 msec
;; SERVER: 10.200.14.10#53(10.200.14.10)
;; WHEN: Thu Mar 25 10:25:43 2010
;; MSG SIZE  rcvd: 71
Sendmail has SMARTHOST configured:
Code:
define(`SMART_HOST',`smtp.emailsrvr.com')dnl
dnl #
define(`confDEF_USER_ID',``8:12'')dnl
dnl define(`confAUTO_REBUILD')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
I know that Rackspace requires authentication using base64 password encryption, but I do not know what to do within Sendmail or outside it to accomplish this requirement. I think this is probably incorrect:
Code:
dnl # The following allows relaying if the user authenticates, and disallows
dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links
dnl #
dnl define(`confAUTH_OPTIONS', `A p')dnl
From other posts It appears that the file /etc/mail/access plays a role in this. Currently it looks like this:
Code:
# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
localhost.localdomain           RELAY
localhost                       RELAY
127.0.0.1                       RELAY
But I have no idea what I would do different since all the examples I have seen on this are based on plain test password.

Any insight/assistance will be appreciated.
 
Old 03-25-2010, 03:50 PM   #2
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
You are looking to do SMTP AUTH with Sendmail as a client to the smarthost. Take a look at this post:

http://www.linuxquestions.org/questi...3/#post1144343

and scroll down/search for the title 'Client-Side SMTP AUTH + SMART_HOST'.

There is a difference in PLAIN-v-LOGIN with SMTPAuth be mindful to pick one that is supported in the EHLO of the Rackspace server. HTH.
 
1 members found this post helpful.
  


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
Where can I find a 3rd Party Repository for RHEL 5? tightlikethat Linux - Newbie 3 02-27-2010 08:46 PM
By mistake i upgraded /installed 3rd party packages on RHEL iamsreeny Red Hat 1 08-08-2008 12:05 PM
RHEL 5 and 3rd Party Repositories. zcrxsir88 Linux - Server 5 02-21-2008 04:20 AM
RHEL 5 and 3rd Party Repositories. zcrxsir88 Linux - Security 2 02-18-2008 07:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:57 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