Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Configure Sendmail to prevent failure after system updates' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Configure Sendmail to prevent failure after system updates
Authored by: astrodawg on May 07, '03 12:36:27PM

This line does not work for me, I get an error "Unmatched '."

echo "define(`confDONT_BLAME_SENDMAIL',
`GroupWritableDirPathSafe')dnl" >> system-darwin.mc

Maybe something lost in the copy/paste. (Yes, I had it on one line)



[ Reply to This | # ]
Configure Sendmail to prevent failure after system updates
Authored by: bspahn on May 07, '03 01:14:34PM
I noticed at least one important problem with the terminal command you're trying to run. Notice that the two leading single quotes (`confDONT_BL... and `GroupWritableDi...) are incorrectly displayed as back ticks in the instructions above.

The correct line should read:

echo "define('confDONT_BLAME_SENDMAIL', 'GroupWritableDirPathSafe')dnl" >> system-darwin.mc

[all in one line of course]

I hope this resolves the problem because I didn't even have the time to try out this very interesting hint myself yet.

Enjoy!

[ Reply to This | # ]
Configure Sendmail to prevent failure after system updates
Authored by: SonicMcTails on May 07, '03 09:09:11PM

That was an error on my part, and I forgot to the quotes.
However, the rest of the hint works :)

---
Instert Better Signature Here ...



[ Reply to This | # ]
Correction
Authored by: SonicMcTails on May 07, '03 09:11:40PM
Wait, sorry, I misread your comment (I thought I forgot the ""'s). That's correct, here are the last three lines from my system-darwin.mc file
MAILER(smtp)
MAILER(procmail)
define(`confDONT_BLAME_SENDMAIL',`GroupWritableDirPathSaf
e')dnl

---
Instert Better Signature Here ...

[ Reply to This | # ]

Configure Sendmail to prevent failure after system updates
Authored by: babbage on Aug 19, '03 12:01:37PM

That wasn't an error -- the m4 config files seem to need unbalanced quotes, `like this'. I'm not sure if balanced quotes will work, but all the Sendmail configuration I've been able to find uses the backtick-apostrophe style of quotation.

I'd agree that it's a very odd syntax, but apparently this is what the m4 macro language wants. *shrug*


---
--
DO NOT LEAVE IT IS NOT REAL



[ Reply to This | # ]
Configure Sendmail to prevent failure after system updates
Authored by: macavenger on May 07, '03 01:28:41PM

Actually, the line as shown is correct. The first character is
supposed to be a backtick and the second is a single quote, in
both words. But for some reason this does not work with the
echo command. What I ended up doing is putting them both in
as single quotes in the echo command, and then editing the
system-darwin.mc with pico to change the first single quote to a
backtick. If you leave it as a single quote it does not work, you
do need it exactly as typed in the hint.

---
iMac DV 400, OS 10.0.2



[ Reply to This | # ]
Configure Sendmail to prevent failure after system updates
Authored by: discordantus on May 07, '03 02:51:02PM
Assuming that MacAvenger is correct, and that you DO need the backtick, then you should be able to "fix" the hint by escaping the backtick with backslashes, thusly:

echo "define(\`confDONT_BLAME_SENDMAIL', \`GroupWritableDirPathSafe')dnl" >> system-darwin.mc

You need to do this because the backtick is a special shell character, anything enclosed in them will get executed in a subshell. You need to place a backslash in front of them if you want the shell to consider them to be a normal character.
Example:

user1% echo I am at `hostname`
I am at foo.net
user1% echo I am at \`hostname\`
I am at `hostname`


And yes, I censored my real hostname.

[ Reply to This | # ]
testing. ignore this!
Authored by: discordantus on May 07, '03 03:17:45PM

just testing how backslashes get stripped. move along...
16 backslashes:
\\\\\\\\\\\\\\\\



[ Reply to This | # ]