* [gentoo-user] [OT] Sendmail and Comcast
@ 2009-02-08 19:54 Mick
2009-02-08 21:23 ` [gentoo-user] " Harry Putnam
0 siblings, 1 reply; 3+ messages in thread
From: Mick @ 2009-02-08 19:54 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 621 bytes --]
Hi All,
If any of you guys has a working sendmail configuration with Comcast I would
be grateful if you could share off list. Although I have followed the
instructions detailed here (except for the masquerade options) I cannot get
it to work:
http://www.linuxha.com/other/sendmail/
After a long day trying to get it to run I have now grown blind to it. The
error I get is:
----- Transcript of session follows -----
... while talking to smtp.comcast.net:
>>> MAIL From:<nagios@my_domain.com> SIZE=578
<<< 550 5.1.0 Authentication required
554 5.0.0 Service unavailable
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gentoo-user] Re: [OT] Sendmail and Comcast
2009-02-08 19:54 [gentoo-user] [OT] Sendmail and Comcast Mick
@ 2009-02-08 21:23 ` Harry Putnam
2009-02-09 8:35 ` Mick
0 siblings, 1 reply; 3+ messages in thread
From: Harry Putnam @ 2009-02-08 21:23 UTC (permalink / raw
To: gentoo-user
Mick <michaelkintzios@gmail.com> writes:
> Hi All,
>
> If any of you guys has a working sendmail configuration with Comcast I would
> be grateful if you could share off list. Although I have followed the
> instructions detailed here (except for the masquerade options) I cannot get
> it to work:
>
> http://www.linuxha.com/other/sendmail/
>
> After a long day trying to get it to run I have now grown blind to it. The
> error I get is:
I'm including this on the list since I think there will be others who
may find it useful.
Mine is setup like this:
(I'm going to assume you know to use m4 to compile sendmail.cf)
1) In sendmail.mc
( Some of this may not be necessary... I've placed asterisks around
those I think are critical )
(I masquerade as the host that supplies my email pop service
(newsguy), I don't use comcast email much. you may be able to ignore
masquerading)
divert(-1)
divert(0) dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc,v 1.17 2008/05/19 14:28:16 root Exp $')dnl
OSTYPE(linux)dnl
define(`confDONT_EXPAND_CNAMES'.`True')dnl
***
FEATURE(`authinfo') dnl
define(`confAUTH_MECHANISMS',`LOGIN PLAIN')dnl
define(`SMART_HOST',`smtp.comcast.net')dnl
***
dnl # [HP 05/16/08 17:22 define(`RELAY_MAILER_ARGS', `TCP $h 587') ]dnl
dnl Per H Message-ID: <g0kmsb$2ddp$1@hedeland.org> comp.mail.sendmail dnl
define(`RELAY_MAILER_ARGS', `TCP $h 587')
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
MASQUERADE_AS(`newsguy.com')dnl
MASQUERADE_DOMAIN(`local.lan')dnl
FEATURE(masquerade_entire_domain)dnl
FEATURE(masquerade_envelope)dnl
FEATURE(relay_hosts_only) dnl relay exact hosts in /etc/mail/relay-hosts dnl
FEATURE(`always_add_domain') dnl
GENERICS_DOMAIN(`local.lan')dnl
define(`confTRUSTED_USERS',`reader defang apache bacula mysql')dnl
MAILER(procmail)dnl
MAILER(smtp)dnl
2) using authinfo is somewhat explained in the README at
/usr/share/sendmail-cf/
Mine looks like this [with some things disguised with MYUSER, MYPASSWD]
(Should be all on one line... in case mail formatting breaks the line)
cat /etc/mail/authinfo
# [HP 02/04/06 23:14 NOTE make sure to makemap hash authinfo < authinfo]
AuthInfo:smtp.comcast.net "U:MYUSER" "I:MYUSER@comcast.net" "P:MYPASSWD" "M: LOGIN PLAIN"
# end authinfo
Heed the comment about makemap or authinfo won't work.
I'm not sure this is necessary anymore but you should probably restart
sendmail after using makemap.. and definitely restart anytime you
recompile sendmail.cf
With those asterisked things in place my mail works fine.
I can relay mail from any of my home machines thru my gentoo host with
the sendmail.mc shown as well. So the other machines are pointed as
my gentoo box as smart host.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Re: [OT] Sendmail and Comcast
2009-02-08 21:23 ` [gentoo-user] " Harry Putnam
@ 2009-02-09 8:35 ` Mick
0 siblings, 0 replies; 3+ messages in thread
From: Mick @ 2009-02-09 8:35 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 876 bytes --]
On Sunday 08 February 2009, Harry Putnam wrote:
> I'm including this on the list since I think there will be others who
> may find it useful.
Someone is bound to need it sooner or later, but it was not strictly speaking
gentoo-user M/L material so I posted it as off topic.
> cat /etc/mail/authinfo
> # [HP 02/04/06 23:14 NOTE make sure to makemap hash authinfo < authinfo]
This was my first mistake - in rushing through I did not update the db every
time I made a change.
> AuthInfo:smtp.comcast.net "U:MYUSER"
Aha! This was my second mistake - I used smmsp as the user. I thought that
this was the process runnind sendmail on my mailserver.
> "I:MYUSER@comcast.net" "P:MYPASSWD"
> "M: LOGIN PLAIN" # end authinfo
>
> Heed the comment about makemap or authinfo won't work.
Thank you very much for your help! :)
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-02-09 18:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-08 19:54 [gentoo-user] [OT] Sendmail and Comcast Mick
2009-02-08 21:23 ` [gentoo-user] " Harry Putnam
2009-02-09 8:35 ` Mick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox