|
|
|
|
||||||
| comp.mail.sendmail Configuring and using the BSD sendmail agent. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi Guys,
1) I'm running OS X Tiger. 2) I haven't configured sendmail - not even sendmail.cf 3) I can send OK to some emails (eg. gmail) but not my own POP-mail. I get the error: -------- 552 sorry, your envelope sender domain must exist (#5.7.1) (in reply to RCPT TO command) -------- My shellscript that sends the mail looks like this: /usr/sbin/sendmail -oi -t -odb<<EOF `echo "To: $recip"` `echo "From: Myname <myname@mydomain.net>"` `echo "Reply-To: Myname <myname@mydomain.net>"` `echo "Subject: $sub"` `echo ""` `echo "$body"` EOF What to do? Thanks in advance. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
In article <1157450027.456251.312870@m73g2000cwd.googlegroups .com>,
"thomasriise" <thomasriise@gmail.com> wrote: > Hi Guys, > > 1) I'm running OS X Tiger. > 2) I haven't configured sendmail - not even sendmail.cf That's good, because on Tiger nothing uses sendmail.cf. The executable at /usr/sbin/sendmail is actually a mostly-sendmail-like program that is part of the Postfix package. It is not the real Sendmail. > 3) I can send OK to some emails (eg. gmail) but not my own POP-mail. I'm not sure what that sentence means. POP is a mail pickup protocol. It has nothing to do with sending mail. > I get the error: > -------- > 552 sorry, your envelope sender domain must exist (#5.7.1) (in reply to > RCPT TO command) > -------- In what context? If you are getting a message back with that error, it would be ful to look at nthat whole message rather than just the one line. That particular error message indicates that in an SMTP conversation, the sending side used a MAIL command with a sender address whose domain could not be resolved by the server. > My shellscript that sends the mail looks like this: > > /usr/sbin/sendmail -oi -t -odb<<EOF > `echo "To: $recip"` > `echo "From: Myname <myname@mydomain.net>"` > `echo "Reply-To: Myname <myname@mydomain.net>"` > `echo "Subject: $sub"` > `echo ""` > `echo "$body"` > EOF Ewww. Why are you doing it that way? Is there some point in backticking a bunch of echo's rather than just putting the lines you want in the heredoc part directly? > What to do? man sendmail That will show you what the Postfix sendmail compatibility program that you are using is capable of doing. I suspect that your basic problem is a confused identity for the machine you are running this on: it has worked out a name for itself that isn't in DNS. That hostname and the username running the command are used to construct the envelope sender address, without regard to what address is in the From header of the message. If the host named is bogus, some sites will not accept the mail. -- Clues for the blacklisted: <http://www.scconsult.com/bill/dnsbl.html> Current Peeve: "This page was written to render correctly in any standards compliant browser" on pages with hundreds of HTML errors. |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Bill Cole wrote:
> In article <1157450027.456251.312870@m73g2000cwd.googlegroups .com>, > "thomasriise" <thomasriise@gmail.com> wrote: >> /usr/sbin/sendmail -oi -t -odb<<EOF >> `echo "To: $recip"` >> `echo "From: Myname <myname@mydomain.net>"` >> `echo "Reply-To: Myname <myname@mydomain.net>"` >> `echo "Subject: $sub"` >> `echo ""` >> `echo "$body"` >> EOF > Ewww. Why are you doing it that way? That deserves a nomination at http://thedailywtf.com/ -- David. |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
David F. Skoll wrote: > Bill Cole wrote: > > > In article <1157450027.456251.312870@m73g2000cwd.googlegroups .com>, > > "thomasriise" <thomasriise@gmail.com> wrote: > > >> /usr/sbin/sendmail -oi -t -odb<<EOF > >> `echo "To: $recip"` > >> `echo "From: Myname <myname@mydomain.net>"` > >> `echo "Reply-To: Myname <myname@mydomain.net>"` > >> `echo "Subject: $sub"` > >> `echo ""` > >> `echo "$body"` > >> EOF > > > Ewww. Why are you doing it that way? > > That deserves a nomination at http://thedailywtf.com/ > > -- > David. Just nevermind. I guess you guys are "too cool" to be asked a simple question by a newbie. I don't know why you even bother to reply like that. Bad style. |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
Le Tue, 05 Sep 2006 02:53:47 -0700, thomasriise a écrit:
> Hi Guys, > > 1) I'm running OS X Tiger. > 2) I haven't configured sendmail - not even sendmail.cf > 3) I can send OK to some emails (eg. gmail) but not my own POP-mail. > > I get the error: > -------- > 552 sorry, your envelope sender domain must exist (#5.7.1) (in reply to > RCPT TO command) > -------- > > My shellscript that sends the mail looks like this: > > /usr/sbin/sendmail -oi -t -odb<<EOF > `echo "To: $recip"` > `echo "From: Myname <myname@mydomain.net>"` > `echo "Reply-To: Myname <myname@mydomain.net>"` > `echo "Subject: $sub"` > `echo ""` > `echo "$body"` > EOF > > What to do? > > Thanks in advance. Try and check where this (probably DNS) probleme lies, what give these tests : # dig mydomain.net # dig mydomain.net MX # dig mydomain.net ANY If you don't have a publicized MX in your "mydomain.net" you'll have to chose a form of MASQuerading to an open MX. (the way to do it will depend on what your 'sendmail' really is :-) |
|
![]() |
| Outils de la discussion | |
|
|