Configuring sendmail on Jaguar
Pages: 1, 2, 3, 4, 5
Allowing Relaying from Certain Hosts
Sendmail doesn't like to relay mail that isn't sent from trusted sources. The designers of sendmail do this purposefully to try to alleviate the problem of spam. You see, spammers take advantage of mail servers that will relay mail from anyone in order to send mail to all of us while taking advantage of somebody else's bandwidth costs. It's truly heinous.
By default, sendmail's paranoia means that when we set up a server, we can only relay mail through it that originates on the local machine. In order to use it as a proper mail server, we need to let it know what hosts to trust to relay mail. For example, my mail sever is configured to accept email that comes from my private home network that is running behind a NAT with a fixed IP address. In addition, I always want to be able to send mail, using my laptop, from my friends houses which have known DSL hostnames. To do this, you simply need to define these rules in the /etc/mail/access file, as shown:
% sudo emacs /etc/mail/access
192.168.123.2 RELAY
dsl-1-1-1-1.networkprovider.net RELAY
You can also allow blocks of IP addresses or partial domain addresses to relay through your server. For example, to allow anybody on a subnet, as well as let everybody at the oreilly.com domain use my mail server, I could edit this file to look like:
% sudo emacs /etc/mail/access
192.168.123.2 RELAY
dsl-1-1-1-1.networkprovider.net RELAY
192.168.145 RELAY
oreilly.com RELAY
This will let anyone with an IP address that starts with 192.168.145, or whose IP address resolves to the oreilly.com domain use our server. Just like with aliases, we need to compile this file into a form that sendmail can use. To do this, use the following command:
% sudo makemap hash /etc/mail/access < /etc/mail/access
Yes, this is yet another command to remember and I personally always have to look it up to use it. Don't fear, we can fix this problem.
Our Helper Script Expanded
Since I hate having to use the documentation to execute what should be simple commands, I have actually added all these commands (and more) to my update script. I gave you the short form earlier. Here's the long form (with the section we haven't seen before in bold type):
#! /bin/sh
if [ /etc/mail/config.mc -nt /etc/mail/sendmail.cf ]
then
echo Regenerating sendmail.cf
m4 /usr/share/sendmail/conf/m4/cf.m4 /etc/mail/config.mc > \
/tmp/sendmail.cf
mv /etc/mail/sendmail.cf /etc/mail/sendmail.cf.old
mv /tmp/sendmail.cf /etc/mail/sendmail.cf
/System/Library/StartupItems/Sendmail/Sendmail restart
fi
if [ /etc/mail/aliases -nt /etc/mail/aliases.db ]
then
echo Updating aliases
newaliases
fi
if [ /etc/mail/access -nt /etc/mail/access.db ]
then
echo Updating access
makemap hash /etc/mail/access < /etc/mail/access
fi
In short, this file checks to see if it should:
- Compile the
sendmail.cffile. - Update the aliases database.
- Update the access database.
When the source to any of these files is out of date, it will be updated. Easy huh? Now, all we have to do is remember to run update whenever we edit one of the configuration files and the right thing will happen.
Running Behind a Firewall
Running sendmail behind a firewall, especially if it's a NAT, can confuse it. You see, sendmail does its best to try to figure out what its host name is. As long as your machine is a first class citizen on the Internet (ie, has an IP address visible from the Internet at large), it can usually do a good job at this. However, when you are running behind a NAT, or if your IP address doesn't resolve to any hostname, you'll need to give sendmail a little help. For example, if you are hosting mail for domain.com, you need to tell sendmail that its domain name is $w.domain.com. The $w part is an important part of sendmail trickery that means "insert the local host name here."
To configure sendmail to use a specific domain name, edit your /etc/mail/config.mc file as follows:
% sudo emacs /etc/mail/config.mc
VERSIONID(`$Id: generic-darwin.mc,v 1.3 2002/04/12 18:41:47 bbraun Exp $')
OSTYPE(darwin)dnl
DOMAIN(generic)dnl
undefine(`ALIAS_FILE')
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')
define(`confDONT_BLAME_SENDMAIL', `GroupWritableDirPathSafe')
define(`LUSER_RELAY', `local:duncan')
define(`confDOMAIN_NAME', `$w.domain.com')
FEATURE(`smrsh',`/usr/libexec/smrsh')
FEATURE(local_procmail)
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')dnl
FEATURE(`genericstable', `hash -o /etc/mail/genericstable')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable')dnl
FEATURE(`access_db')dnl
MAILER(smtp)
MAILER(procmail)
As always, remember to run the update script:
% sudo ./update
Regenerating sendmail.cf
Restarting mail services
Next we'll take a look at one other common problem that people have that is introduced by their ISP.
Working with Lame ISPs
What do I mean by "Lame ISPs?" Well, I mean those ISPs that block all outgoing traffic on port 25. Instead of letting you have access to the Internet on port 25, they want you to use their own mail server. They do this to try to stop spammers from utilizing open relays on their networks. However, this means that your mail server can't send mail to other hosts on the Internet.
Luckily, since sendmail is the swiss army knife of mail servers, there is a configuration directive to fix this. To have all mail from your server go through your ISP's mail server, edit your /etc/mail/config.mc file to match the following:
% sudo emacs /etc/mail/config.mc
VERSIONID(`$Id: generic-darwin.mc,v 1.3 2002/04/12 18:41:47 bbraun Exp $')
OSTYPE(darwin)dnl
DOMAIN(generic)dnl
undefine(`ALIAS_FILE')
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')
define(`confDONT_BLAME_SENDMAIL', `GroupWritableDirPathSafe')
define(`LUSER_RELAY', `local:duncan')
define(`confDOMAIN_NAME', `$w.domain.com')
define(`SMART_HOST' `mail.mindspring.com')
FEATURE(`smrsh',`/usr/libexec/smrsh')
FEATURE(local_procmail)
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')dnl
FEATURE(`genericstable', `hash -o /etc/mail/genericstable')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable')dnl
FEATURE(`access_db')dnl
MAILER(smtp)
MAILER(procmail)
Once again, run the update script:
% sudo ./update
Regenerating sendmail.cf
Restarting mail services
Problem solved.
Conclusion
I've taken you on a whirlwind tour of the major configuration areas of sendmail. To be sure, there is more, quite a bit more, than I could cover in this article. However, after reading this piece, you should have a start on being self-sufficient with sendmail. And when you need to do more, be sure to get sendmail, 2nd Edition by Bryan Costales and Eric Allman. There's a reason it's over a thousand pages long! Also, there's a 3rd edition in the works. Look for it in a few months.
James Duncan Davidson is a freelance author, software developer, and consultant focusing on Mac OS X, Java, XML, and open source technologies. He currently resides in San Francisco, California.
Return to the Mac DevCenter.
You must be logged in to the O'Reilly Network to post a talkback.
Showing messages 1 through 222 of 222.
-
NetInfo?
2004-03-05 15:51:15 gunshin [Reply | View]
i have a big problem. i think sendmail is looking at NetInfo for users.
if i send to joe@yahoo.com, the mail goes.
if i send to joe@mydomain.com, mail goes, but i never get.
if i have something sent to storename@mydomain.com, it say in mail logs "<storename@mydomain.com... User unknown>"
i figure, and this is just a guess, sendmail is looking at users in netinfo.
i saw this article and noticed a stop command:
% sudo niutil -create . /locations/sendmail
% sudo niutil -createprop . /locations/sendmail sendmail.cf /etc/mail/sendmail.cf
but i am not sure where to invoke this command. in /etc/mail?
marty
-
Sorry for being slow...
2004-02-25 15:40:07 blizzard60 [Reply | View]
Have I missed something major in the write up? I want to configure my dedicated web-server (iMac) to be a mail server. I would like to be able to access this with other computer connectios (from home, the office, on the road, etc).
I seem to have done everything correctly, the only thing is that my "bin" directory is in usr, not usr/local.
Any help would be very appreciated. These articles have helped me immensely with setting up my web server!
Cheers,
-Chris
-
Unread mail showing as read
2004-01-09 06:38:06 jmed53 [Reply | View]
Hello All,
I have a problem when downloading my email to two different computers. The first computer to download will show the email as unread, while the second shows the same email as read. This is a real problem when someone sends an email and their clock is off. Anyway, I am using Eudora 6.0 for the Macintosh on both computers. Our mail server is sendmail / qpopper on a Mac OS 10.2.8 (Thank you James Duncan Davidson and the O'Reilly Network). I suspect the mail server is the culprit, because this problem did not occur when we had a Windows NT machine running Worldmail 2.0. Is there a setting in qpopper that can be changed?
Thanks in advance, Jim
-
Upgrading sendmail
2003-12-01 08:01:35 jmed53 [Reply | View]
Is there an easy way to upgrade sendmail to version 8.12.10 or would it be better to apply the patch? In either case, are you going to come out with some simple directions?
By the way, Thanks for all the instructions so far. I have a personal web page up and I am running sendmail with qpopper on my Mac (OS 10.2.8). I have even set up email accounts for friends. Thanks Again, Jim
-
nice article
2003-11-25 03:38:02 anonymous2 [Reply | View]
Nice article but i still have some problems when sending mail, i receive mail when i send to my hotmail adres and my mail.log has the following lines
Nov 25 12:18:09 localhost sendmail[13105]: hAPBI9Dn013105: from=www, size=323, class=0, nrcpts=1, msgid=<200311251118.hAPBI9Dn013105@myown.domain.nl>, relay=localhost
Nov 25 12:18:09 localhost sendmail[13106]: hAPBI9bG013106: from=<www@myown.domain.nl>, size=534, class=0, nrcpts=1, msgid=<200311251118.hAPBI9Dn013105@myown.domain.nl>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Nov 25 12:18:09 localhost sendmail[13105]: hAPBI9Dn013105: to=myhotmailadres@hotmail.com, ctladdr=www (70/70), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30110, relay=localhost [127.0.0.1], dsn=2.0.0, stat=Sent (hAPBI9bG013106 Message accepted for delivery)
Nov 25 12:18:11 localhost sendmail[13108]: hAPBI9bG013106: to=<myhotmailadres@hotmail.com>, ctladdr=<www@myown.domain.nl> (70/70), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=30321, relay=mx1.hotmail.com. [65.54.166.99], dsn=2.0.0, stat=Sent ( <200311251118.hAPBI9Dn013105@myown.domain.nl> Queued mail for delivery)
but if i want to sent mail to my chello address i get the following lines in my mail.log
Nov 25 12:34:50 localhost sendmail[13141]: hAPBYo0k013141: from=www, size=194, class=0, nrcpts=1, msgid=<200311251134.hAPBYo0k013141@myown.domain.nl>, relay=localhost
Nov 25 12:34:50 localhost sendmail[13142]: hAPBYobG013142: from=<www@myown.domain.nl>, size=406, class=0, nrcpts=1, msgid=<200311251134.hAPBYo0k013141@myown.domain.nl>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Nov 25 12:34:50 localhost sendmail[13141]: hAPBYo0k013141: to=myemail@chello.nl, ctladdr=www (70/70), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30152, relay=localhost [127.0.0.1], dsn=2.0.0, stat=Sent (hAPBYobG013142 Message accepted for delivery)
Nov 25 12:34:50 localhost sendmail[13144]: hAPBYobG013142: to=<myemail@chello.nl>, ctladdr=<www@myown.domain.nl> (70/70), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=30364, relay=smtp.chello.nl. [213.46.243.2], dsn=5.6.0, stat=Data format error
Nov 25 12:34:50 localhost sendmail[13144]: hAPBYobG013142: hAPBYobG013144: DSN: Data format error
Nov 25 12:34:50 localhost sendmail[13144]: hAPBYobG013144: to=<www@myown.domain.nl>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31430, dsn=2.0.0, stat=Sent
i hope anyone can help me, cause im getting crazy here :(
tnx in advance fr0sty
-
sendmail not starting
2003-11-21 18:44:17 anonymous2 [Reply | View]
mail.log shows this... seems to be trying to go to my lan ip rather than staying on my box at 127.0.0.1 addr. Nov 21 03:15:01 mirador sendmail[24687]: gethostbyaddr(10.0.1.201) failed: 3
Also the update script gives Tegenerating sendmail.cf but does not Restarting mail services.
My system is 10.2.8 and I have the Developer tools installed.
This has not been straightforward.
-
Sendmail & Panther?
2003-11-11 05:56:15 anonymous2 [Reply | View]
Has anyone had any problems with these instructions on Panther? I've been in the middle of a move for the last 4 months, and just now getting ready to start this whole process over again from scratch with panther.
I was just wondering if there are any roadbumps that I need to be prepared for.
Thanks!
Mike
-
Sendmail & Panther?
2003-11-18 14:58:01 macmartin [Reply | View]
hi there,
as far as i know, the mailserver on panther is not sendmail any more by default.
apple has decided to switch to postfix, which is a little easier to configure.
postfix does not loose rejected mails as sendmail does (sendmail panic)
but as far as i am concerned:
i will try to put sendmail on panther as soon as i will put it on my G4.
it´s also possible to have sendmail and panther installed on the same system.
just need some changes in the /etc/hotconfig and in the /System/Library/StartupItems/
an if you realy want to do this, it would be even possible to have them running at the same time using diffrent ports
greetings from germany
macmartin -
Sendmail & Panther?
2003-11-22 18:43:57 anonymous2 [Reply | View]
Ahhh, I did not realize that it wasn't included. Some time ago I thought of switching from Sendmail to postfix, but I was so deep into Sendmail it would have taken more time to reconfigure everything than starting from scratch, which would have caused some serious down time.
Hey James, any thought of a new article for Panther and Postfix? After looking at some other sites, that seems to be the best way to go. -
Sendmail & Panther?
2004-04-20 20:34:01 kernelkonfusion [Reply | View]
I would second an article on "Configuring Postfix on Panther".
I have just spent the best part of a week figuring out how to have sendmail use ports other 25 for relay. How do you do this on Postfix? I heard Postfix was very sendmail like - is my old sendmail.cf any use?
Does Panther have a built in POP3 server?
-
Strange Feats of Disconectivity
2003-10-30 14:19:17 anonymous2 [Reply | View]
I have followed this article religiously in the past. And now that I have every thing set up on my computer correctly it works. Wait, no not any more. I had every thing working sendmail would receive and send emails with out any troubles at all. Then suddenly it stopped working. I've gone through and re-set every setting and now I have a new error. This started today and I've been working on it for hours. The message that I get when I start up the server is "451 4.0.0 /etc/mail/sendmail.cf: line 96: fileclass: cannot open '/etc/mail/local-host-names': World writable directory". Now I have set sendmail to use the dontBlameSendmail as described in the article in all the places in the article. In fact I was so worried I changed the permissions on the / and /etc/mail. Does anyone have ANY ideas what I could do to fix this? email @ asheldon@alumni.union.edu
-
Changing sendmail port from 25 to something else
2003-10-20 20:53:17 anonymous2 [Reply | View]
Since i am using a PowerBook, it makes sense to use sendmail on my machine whenever i'm on a different network, instead of having to worry about changing my smtp settings in Mail.app all the time. Although the "define(`SMART_HOST', `smtp.mailserver.net')" line works for a stationary machine, this line would have to be changed for every new ISP my PowerBook comes in contact with.
on the sendmail.org site, there is a FAQ that says to change the outgoing port to something OTHER than 25, insert this line in the config.mc file:
define(`SMTP_MAILER_ARGS', `TCP $h 2525')
-- or any other port you want. it doesn't have to be port 2525.
(the full FAQ is here: http://sendmail.org/faq/section3.html#3.39 )
I tried that, and then ran the "update" script again, but when i telnet into my machine, it still shows sendmail as running on port 25! argh.
since i really do use my laptop everywhere, and connected to many different IPs, getting sendmail to use a non-restricted port is pretty essential.
Any suggestions?
I'll email ya a pizza if you can figure this one out :-)
-- jeffrey
-
queued messages go out by themselves
2003-10-14 16:57:06 macmartin [Reply | View]
had my sendmail working for months.
but now i got this strange behaviour:
the mails get queued as they are supposed to.
but after a period of time (usualy 5 to 45 minutes) the mails get send out withaout any interaction of mine.
before , the mails got only send out after i did:
sendmail -q [-v]
here is my config.mc:
divert(-1)
divert(0)dnl
###
#
#
###
VERSIONID(`$Id: generic-darwin.mc,v 1.3 2002/04/12 18:41:47 bbraun Exp $')
OSTYPE(darwin)dnl
DOMAIN(generic)
#GENERICS_DOMAIN(maki.dom)dnl
#MASQUERADE_AS(`blabla.homeunix.net')
#MASQUERADE_DOMAIN(`maki.homeunix.net')
define(`confDONT_BLAME_SENDMAIL', `GroupWritableDirPathSafe')dnl
define(`confDELIVERY_MODE', `defer')dnl
define(`LOCAL_DOMAIN', `$w.maki.dom')dnl
FEATURE(`genericstable', `hash -o /etc/mail/genericstable')dnl
FEATURE(`mailertable', `hash -o /etc/mail/mailertable')dnl
FEATURE(`access_db')dnl
FEATURE(`accept_unresolvable_domains')dnl
#FEATURE(`masquerade_envelope')dnl
#FEATURE(`local_no_masquerade')dnl
MAILER(local)
MAILER(smtp)
LOCAL_CONFIG
Cw localhost saturn.maki.dom
if anyone has any idea -> please help
-
PHP & Sendmail on OS X/ OS X Server 10.2.8
2003-10-10 05:31:19 anonymous2 [Reply | View]
There are many who, like me, have had problems with PHP's mail() function on OS X/OS X Server 10.2.x and sendmail. I think I've stumbled onto the solution. This IS working for me and hopefully will work. :-)
This all assumes you have sendmail running of course. I have a stock installation and the default sendmail settings (like others, trying to change sendmail proved unsuccessful in getting it to accurately pick up the FQDN -fully qualified domain name).
You must also make sure that your domain name server properly identifies your server with the IP address, or this probably won't work.
From your command line (with root privileges) enter the following:
pico /etc/hostconfig
Scroll down untill you see HOSTNAME. Make sure it says the following:
HOSTNAME=-AUTOMATIC-
Save the changes. Then reboot. Sendmail should now pick up the correct FQDN!
One point that is VERY important to remember. You should make SURE that your web account users have SHARE points assigned and not specific paths for the location of their files. Changing the hostname above will affect the path!
Hope this helps!
-
I finally got it to work
2003-10-09 23:04:34 kcrazy [Reply | View]
After 6 days and a lot of headaches. I couldn't send mail outside to anyone. I thought I had to use smarthost in the mc file, but for some reason it didn't work. I found this application.
http://www.roadstead.com/weblog/Tutorials/SMSource.html#RoadWarrior
Although I knew what to put in the blanks from reading this article. Still more stuff to do on my mac.
-
mail for php only
2003-09-24 12:19:28 anonymous2 [Reply | View]
I am just trying to get the mail function of php working but I don't have an ISP to use for SMTP and I am using Webstar. This seems like too much work to get mail just going from my web server. I haven't had problems using php mail on nt just using smtp and it seemed to just already be working on linux. Mac is what i'm on now. I see someone has a link to a simple set up for sendmail but it can't be gunzipped. Are there any other simple ways of just being able to mail from php without creating a whole mailserver?
-
Sendmail - no daemon needed?
2003-09-11 14:29:56 welshr [Reply | View]
We have a collection of many hosts running applications that sometimes generate alerts that need to be delivered to a caretaker. We use mail to accomplish this but we don't want to run the full-up sendmail daemon on all these machines for security reasons. These machines NEVER receive mail. Just killing the sendmail daemon causes the messages to build up in the queue and not be delivered. There is a separate mailhost in our network that takes care of all deliveries, mailboxes, etc. How can I get my mail delivered appropriately without having sendmail waiting for connections also?
-
sendmail still does not do its job
2003-08-09 00:06:55 anonymous2 [Reply | View]
hi,
I would like to use the php mail function on my local server, in order to test certain designs. it is more about sending mails versus receiving.
( actually i am a designer and I am not to much into the unix world :-)
I have tried to follow the o´reilly tutorial, but it didn´t work out, I guess because I was not able to execute the update script, or at least there was no response, like:
Regenerating sendmail.cf
Restarting mail services
somebody mentioned that the os X developer tools have to be installed ? which part of it and where could I get them from ?
the last entry in my mail.log looks like this:
Aug 8 22:34:05 bruno sendmail[440]: File descriptors missing on startup: stdin, stdout, stderr; Bad file descriptor
Aug 8 22:34:06 bruno sendmail[440]: gethostbyaddr(192.168.0.2) failed: 3
Aug 8 22:34:06 bruno sendmail[460]: starting daemon (8.12.9): SMTP+queueing@01:00:00
Aug 8 22:34:06 bruno sendmail[462]: File descriptors missing on startup: stdin, stdout, stderr; Bad file descriptor
Aug 8 22:34:06 bruno sendmail[463]: starting daemon (8.12.9): queueing@01:00:00
thanks a lot for your help
stephan -
sendmail still does not do its job
2003-09-09 09:52:09 anonymous2 [Reply | View]
The OS X Developer Tools installer is (or should be) in
/Applications/Installers/Developer Tools/
Just install the whole package.
Once you've done that, the program "m4" should be in /usr/bin, and /usr/bin should always be in your $PATH, so from any Terminal window you should be able to run the update script and get the expected messages.
I don't know what the "Bad file descriptor" stuff is all about. It doesn't sound related to your missing DevTools. After you've installed the DevTools and rerun update, check for these messages again. If they're still happening, come back here, and perhaps someone will be able to help.
The gethostbyaddr failure is more-or-less expected: your machine appears to be behind a NAT firewall. See the last page of the article for some pointers on dealing with this. Since you're more interested in sending that receiving mail, the NAT shouldn't be a terrible issue, but (as the article says) make very sure that the mail you send out can be replied to (arriving in some other, "real" mail box). That can be done by providing a "Reply-To:" header pointing to the real box, or by providing the real box as "From:".
-
Update Script Errors
2003-07-29 00:15:20 anonymous2 [Reply | View]
I seem to be getting two different issues when running the updater script:
The first time I ran it (after adding Dont_Blame_Sendmail line to config.mc) I got:
Regenerating sendmail.cf
./sendmail-update: m4: command not found
Restarting mail services
I looked through the posts here and added
'cd /usr/share/sendmail/conf/m4/'
as someone suggested but also looked and the m4 file is there. Now I get:
Regenerating sendmail.cf
./sendmail-update: m4: command not found
Starting mail services
554 5.0.0 No local mailer defined
554 5.0.0 QueueDirectory (Q) option must be set
A new problem seems to have appeared ... any thoughts?
Thanks
-
Getting 'sendmail' working w/ Bugzilla in Jaguar.
2003-07-15 23:15:01 kavan_mac [Reply | View]
OK...first of all, excellent article. Would not have gotten 'sendmail' up and running properly in Jaguar without it. Thanks!
If, after following the steps described in this article, you're receiving mail just fine, but not able to send mail outside of your LAN, try the following:
sudo cp /etc/mail/submit.cf submit.cf.old
sudo ln -s /etc/mail/sendmail.cf /etc/mail/submit.cf
...and then restart sendmail. i think sendmail uses the "submit.cf" script for outgoing mail in place of "sendmail.cf" or something like that - anyway, you need the same modifications in "submit.cf" as well; this will simply link it to your modified "sendmail.cf" script.
For all you Bugzilla wanna-bees (like me), in order to get sendmail working w/ your Bugzilla installation, you have to do the following additional step:
sudo ln -s /usr/sbin/sendmail /usr/lib
...this will create a symbolic link to sendmail in /usr/lib, which is where Bugzilla expects to find it. once you do that, you should be able to get your Bugzilla installation to send out mail in Jaguar!
<mailto:kavan_mac@dls.net>
-
host name lookup failure...
2003-05-29 04:09:40 anonymous2 [Reply | View]
Hi all, I have followed the instructions in this article to get sendmail working, which, so far has worked but when I look at /var/log/mail.log I have the following error
<snip>
relay=mac.com., dsn=4.0.0, stat=Deferred: Name server: mac.com.: host name lookup failure
</snip>
Anyone have any ideas? -
host name lookup failure...
2004-04-12 08:19:32 kernelkonfusion [Reply | View]
OK, i think it had nothing to do with that entry I made in /etc/hosts but because I had added my ISP's DNS servers in the DNS server list in the network control panel, I tested this by removing those and the problem recurred even though I had an entry in /etc/hosts but I was able to resolve the issue by adding them again. -
host name lookup failure...
2004-04-06 21:24:10 kernelkonfusion [Reply | View]
I had the very same issue with sendmail when I tried to set it up recently. I had all but given up on it to wait for my Panther distribution but I was tidying up some settings on my Mac for a recent LAN renumbering when I fixed it by adding an entry for the local IP address in /etc/hosts file. I am not sure why this worked and it implies that sendmail's message was misleadingly not indicative of some problem with the destination IP but the local host IP. -
host name lookup failure...
2003-06-24 22:31:18 macmartin [Reply | View]
Your DNS is not set up properly -
this can have various reasons -
maybe you are not connected to the internet when sending -
there are severeal solutions to this, depending on your newtork-environment -
tell me more about your set-up and i guess i will find the solution.
hint:
you might be able to solve this by just using the /etc/hosts - file and/or the mailertable in a home environment.
regards from germany
macmartin
-
sendmail working with email client but not with php
2003-05-26 10:31:45 anonymous2 [Reply | View]
i followed your instructions and got sendmail working so that i can use my email client to send messages, but i can't seem to get the mail function with php 4.3.1 working. it doesn't return an error, it just doesn't seem to send any messages. any help would be greatly appreciated. thx.
-
sendmail working with email client but not with php
2003-05-26 18:28:01 anonymous2 [Reply | View]
I have the same problem. In fact what it happens in my case is that the php script that should send the mail seems to be running forever whithout sending any output. If i stop the browser from loading the page generated it works... but otherwise it doesn't. I tried the php built-in mail() function, and also the PEAR sendmail implementation which opens a pipe to sendmail. The reult is the same in both cases. Actually if you try to run from the command-line something like:
/usr/sbin/sendmail -ffoo@foo.bar -- a@foobar.com\n From: foo@foo.bar\n
To: a@foobar.com\n
Subject: Test\n
\n
test mail body\n
\n
^D
you will see that sendmail doesn't quit and hangs up...
All tests above work perfect on linux but I need this also for a OSX machine
sugestions and comments at : alexbota_at_xnet_dot_ro -
sendmail working with email client but not with php
2003-05-26 18:27:45 anonymous2 [Reply | View]
I have the same problem. In fact what it happens in my case is that the php script that should send the mail seems to be running forever whithout sending any output. If i stop the browser from loading the page generated it works... but otherwise it doesn't. I tried the php built-in mail() function, and also the PEAR sendmail implementation which opens a pipe to sendmail. The reult is the same in both cases. Actually if you try to run from the command-line something like:
/usr/sbin/sendmail -ffoo@foo.bar -- a@foobar.com\n From: foo@foo.bar\n
To: a@foobar.com\n
Subject: Test\n
\n
test mail body\n
\n
^D
you will see that sendmail doesn't quit and hangs up...
All tests above work perfect on linux but I need this also for a OSX machine
sugestions and comments at : alexbota_at_xnet_dot_ro
-
This is not a fix for OS X Server
2003-05-22 11:13:09 anonymous2 [Reply | View]
Everyone pay attention. This is the error that I get when sendmail attempts to send mail on a BRAND NEW XServe. This was the result of PHP's mail() function, but the UNIX mail command does the same thing.
May 22 13:58:41 servername sendmail[9460]: h4MHwfRo009460: to=someone@domain.tld, ctladdr=admin (501/20), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30037, relay=localhost [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by localhost
Every other dicussion group references this article as a solution, but IT DOESN'T WORK. I've tried it many times now.
My solution is to install Postfix (www.postfix.org). I just posted this as an FYI to anyone who is running around posting this article in discussion groups.
Once again: this article + mac os x server = sendmail is still broken.
If anyone has actually fixed this problem on their server, post and let us know.
-
SSL SMTP?
2003-04-27 02:31:13 justinb [Reply | View]
-i hope these are still being read-
First of all, Thanks for a great article Duncan. I couldn't do sendmail w/o something like this. Amazon.com has my Hacks book on the way. Hopefully you get a cut for your contributions. :)
It would be really nice to be able to setup SSL for outgoing mail. That way we could loosen up the RELAY configs so we could email out securely from anywhere. Will we see this in our future?
jb72@mac.com
-
send via mail.app
2003-04-13 22:53:26 anonymous2 [Reply | View]
Having setup sendmail as detailed, initial problems were solved by coping sendmail.cf to submit.cf
from the terminal mail can be sent from any user as required.
I would like to send from the mail.app, however any attempts to do so fail with the error.
The outgoing mail server 127.0.0.1 failed to deliver this message. The server 127.0.0.1 refused to allow connection on port 25
-
send via mail.app
2003-04-14 05:43:43 anonymous2 [Reply | View]
Is the Apple firewall on? Either open port 25 or turn the firewall off entirely. I turned the firewall off 'cause my ISP provides NAT translation at their gateway. Good security, but a pain if you want to reach your machine from the outside.
Don't forget to reboot. Yes, sounds like Windoze but is the sure way to restart everything.
-
Connecting to localhost via relay...Deferred: Connection refused by local host
2003-04-09 01:16:45 anonymous2 [Reply | View]
read this message: http://www.oreillynet.com/cs/user/view/cs_msg/15245
I was having the same problem and it fixed it for me!
good luck!
-
roaming with a 'book?
2003-04-07 23:51:01 anonymous2 [Reply | View]
I've got sendmail running on my ibook, and it works great on my own domain. at work today i tested it and it seemed like it didn't work, though i attributed it tonight to a poor .cf file (my bad). i wonder if anyone knows how to set up sendmail to run regardless of what network it's on...the idea being its own MTA, so I can wander around without having to relay through another SMTP.
do you have to add _every_ network you're on, or will ever be on, to achieve this? or can one simply send mail through localhost without such heavy-handed editing?
thoughts? -
roaming with a 'book?
2003-07-23 15:47:19 anonymous2 [Reply | View]
no special magic should be needed, BUT...
(1) if sendmail is getting the hostname for the ibook
from someplace dynamic, like dhcp, weird things
could well happen. you might want to hardcode the
name into the sendmail.cf by using something like
define(`confDOMAIN_NAME', `laptop.domain.com')
in the .mc file. (the .mc file is used to make the .cf file, as
per the article).
(2) the network where you have plugged in the ibook might
not let just any box there send mail out. For some places,
you'll probably have to use the ISP or corporate smarthost.
Be aware that this also means that you could try to send
some mail, not notice that it didn't go out, and then have it
go out days later when you plug the laptop in someplace else.
(3) make darned sure that the machine is emitting headers which can be replied to. not to do so is irresponsible and
can cause other folks lots of hassles.
you might want to have mail for laptop.domain.com received on a regular basis by some machine which does not move around to different networks, and which would then deliver/forward the mail someplace where you'll get it.
--bressen
-
SMARTHOST Question
2003-04-07 08:11:32 anonymous2 [Reply | View]
What do you do when your ISP REQUIRES a username and password to send email via their SMTP server?
-
sendmail fails from "www" user
2003-03-31 11:37:15 dmknuth [Reply | View]
Hi,
Thanks for providing this article. It has been a great help.
I have sendmail properly working from the command line when logged in as the administrator of my server (Xserve, 10.2.3), but it fails when my CGI invokes it under the www user. The mail.log uses a different relay host under www than under admin. Why are these different and how can I correct this?
I need to be able to send e-mail from a web form and sendmail invoked from a shell script seems to be the best option. Are there better ones?
Here are are excertps from successful and failed sendmail invocations. The first is from a web form invocation and the second is from the command line (which works).
The entries below correspond to e-mail that does NOT get sent.
Mar 27 16:11:22 inter-stitial sendmail[856]: h2RLBM89000856: from=www, size=135, class=0, nrcpts=1, msgid=<200303272111.h2RLBM89000856@inter-stitial.com>, relay=localhost
Mar 27 16:11:22 inter-stitial sendmail[857]: h2RLBMM9000857: from=<www@inter-stitial.com>, size=351, class=0, nrcpts=1, msgid=<200303272111.h2RLBM89000856@inter-stitial.com>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Mar 27 16:11:22 inter-stitial sendmail[856]: h2RLBM89000856: to='dmknuth@attglobal.net' , ctladdr=www (70/70), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30135, relay=localhost [127.0.0.1], dsn=2.0.0, stat=Sent (h2RLBMM9000857 Message accepted for delivery)
Mar 27 16:11:23 inter-stitial sendmail[859]: h2RLBMM9000857: to=<'dmknuth@attglobal.net'>, ctladdr=<www@inter-stitial.com> (70/70), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=30319, relay=attglobal.net', dsn=5.1.2, stat=Host unknown (Name server: attglobal.net': host not found)
Mar 27 16:11:23 inter-stitial sendmail[859]: h2RLBMM9000857: h2RLBNM9000859: DSN: Host unknown (Name server: attglobal.net': host not found)
Mar 27 16:11:23 inter-stitial sendmail[859]: h2RLBNM9000859: to=<www@inter-stitial.com>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31375, dsn=2.0.0, stat=Sent
The entries below correspond to e-mail that does get sent properly.
Mar 27 16:11:48 inter-stitial sendmail[864]: h2RLBm86000864: from=admin, size=263, class=0, nrcpts=1, msgid=<200303272111.h2RLBm86000864@inter-stitial.com>, relay=localhost
Mar 27 16:11:48 inter-stitial sendmail[865]: h2RLBmM9000865: from=<admin@inter-stitial.com>, size=480, class=0, nrcpts=1, msgid=<200303272111.h2RLBm86000864@inter-stitial.com>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Mar 27 16:11:48 inter-stitial sendmail[864]: h2RLBm86000864: to=dmknuth@attglobal.net, ctladdr=admin (501/20), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30263, relay=localhost [127.0.0.1], dsn=2.0.0, stat=Sent (h2RLBmM9000865 Message accepted for delivery)
Mar 27 16:11:49 inter-stitial sendmail[867]: h2RLBmM9000865: to=<dmknuth@attglobal.net>, ctladdr=<admin@inter-stitial.com> (501/20), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=30317, relay=mx1.prserv.net. [32.97.166.40], dsn=2.0.0, stat=Sent (ok ; id=2003032721115210102id4qje)
-
question about sendmail.cf and submit.cf
2003-03-26 16:15:44 thk_phd [Reply | View]
It looks like the script
/System/Library/StartupItems/Sendmail/Sendmail
causes sendmail to read the configuration file
/etc/mail/submit.cf
Should this be the file we replace
with the update script? Or did I miss something?
Thanks
-
File descriptors missing on startup: stdin, stdout, stderr; Bad file descriptor
2003-03-19 16:11:20 macmartin [Reply | View]
I get this messages in the /var/log/mail.log over and over
Mar 19 22:57:26 g4x sendmail[355]: File descriptors missing on startup: stdin, stdout, stderr; Bad file descriptor
Mar 19 22:57:26 g4x sendmail[355]: gethostbyaddr(192.168.100.10) failed: 3
Mar 19 22:57:26 g4x sendmail[363]: starting daemon (8.12.7): SMTP+queueing@01:00:00
Mar 19 22:57:26 g4x sendmail[365]: File descriptors missing on startup: stdin, stdout, stderr; Bad file descriptor
Mar 19 22:57:26 g4x sendmail[370]: starting daemon (8.12.7): queueing@01:00:00
sendmail starts, but no mails get delivered
Who can help me ?
Thanks a lot
macmartin
-
File descriptors missing on startup: stdin, stdout, stderr; Bad file descriptor
2004-04-12 07:28:25 kernelkonfusion [Reply | View]
i get the file descriptors error but not the gethostbyname. i think i used to get the gethostbyname error until i included an entry for the IP address of the machine in the /etc/hosts
currently i have another error which is causing outgoing relay errors
Apr 12 21:55:43 Toms-Powerbook sendmail[461]: i3CEthas000459: to=tom@topspot.com, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=30159, relay=topspot.com., dsn=4.0.0, stat=Deferred: Name server: topspot.com.: host name lookup failure
i know i fixed this once before but not sure how -
File descriptors missing on startup: stdin, stdout, stderr; Bad file descriptor
2003-11-03 07:40:24 mariox19@mac.com [Reply | View]
Regarding this line:
Mar 19 22:57:26 g4x sendmail[355]: gethostbyaddr(192.168.100.10) failed: 3
Use NetInfo. Under the "machines" property, duplicate "localhost," give the new entry a name (that is, name your machine -- "imac" or whatever), and change "ip_address" to the IP address assigned by your router.
Note, if your machine obtains a dynamic IP from your router, this will fail when the IP changes. I've configured my router to never change the IP address for the machines on its network, once assigned.
-
Continuing Sendmail problem after security update
2003-03-17 15:31:02 edillon [Reply | View]
My Sendmail keeps resisting all attempts to restore it after the 3/3/03 security update. I generated the missing clientmqueue file that was causing an error (thanks to 'macmartin'!) and have installed "-Am" into the Sendmail script per 'jzsimon'; also tried the symbolic link trick earlier, but backed it out.
Now I consistenly get the error "SYSERR(root): hash map "access": missing map file /etc/mail/access.db: No such file or directory" and there sure isn't one there [altho, I remember seeing one a while back]. Tried just making a file with that name, but was rejected as "wrong format".
What function is supposed to create this file? It is mentioned in several places in the sendmail.cf file. How do I create one? TIA, everyone.
-
Continuing Sendmail problem after security update
2003-07-23 15:04:12 anonymous2 [Reply | View]
this is a map database.
normally, you'd put the stuff that you want the db to contain in a file called access, and then use makemap to
create access.db using access as input.
check out "man makemap" and also sendmail.org help
pages. --bressen
-
re:Continuing Sendmail problem after security update
2003-03-24 03:13:11 macmartin [Reply | View]
I have expierienced a problem with sendmail which I could fix as follows.
Maybe this could also cause you problems.
<font size=+1>I deleted all queued messages in the
/var/spool/mqueue
and
/var/spool/clientmqueue</font>
If there are too many mails queued, this keeps sendmail from delivering mail.
Dont ask me why!
I myself got a problem, too.
Can not send email to external adresses (for example to the email adress i got fom my ISP
no matter what i try
What steps do i have to do, only to set this up correctly?
Where can I find a tutorial?
-
Connecting to localhost via relay...Deferred: Connection refused by local host
2003-03-17 06:04:16 anonymous2 [Reply | View]
This is the message I receive when trying to send a message from sendmail after the security update. Before the security update, sendmail worked fine. I receive this message wen logged into the terminal as root and sending a message to another user. The system is basically only used by a few people for tech support issues and has an IP address, but no DNS name. Could not having a DNS name be the problem?
-
what are the #config.mc# and the #sendmail.cf# files?
2003-03-16 13:07:33 macmartin [Reply | View]
I do not only want to get this running but also want to understand the sendmail program and the mail-server itself deeply (as the whole Unix/Mac OS X thing).
So who can me tell what the #config.mc# and the #sendmail.cf# files are and what they are used for?
Are they something like a backup of a configuration?
There´s another similar question on the emacs editor, which I often use to edit configuration files:
I happened to notice files like "filename.suf~" in the same directory as "filename.suf".
These I guess are backup-files of the last version of the file.
Are they ?
Can this be configured in emacs?
For example not to create these name~ backup files?
or
to create backups for the last three or any number of versions?
Any help would be appreciated.
Excuse me if my English is not so good - I hope it can be understood.
macmartin - Nuernberg - Germany -
what are the #config.mc# and the #sendmail.cf# files?
2003-05-11 11:06:44 anonymous2 [Reply | View]
Since you are using emacs... "info is your friend!"
The #<filename> files are the files which you are currently editing in emacs. They are recovery files. As soon as you save the file ^x^s or write the file ^x^w, they will go away.
If you quit the emacs editing session, with a kill or ^x^c, that is, without saving the buffer, these files will be left around as #<filename#> provinding a load for M-x-Recover to use. [part of the auto-save feature]
The tilde files (~) ARE backup files. They are created as soon as the open file is modified the FIRST time.
The behavior can be controlled via your .emacs initilization file.
Go to the emacs info system (^h^h i) move your cursor down (std emacs cursor movement keys work including search!) to the bold "emacs" entry and hit return, under files is "auto save".
(Navigate the info system with N/P/U (see top of info screen.)
About four screens down is "Saving files" navigate to "backup," hit return. Then "backup names. (note that version control is different from backup)
Note especially the section of Copying vs. Renaming.
The tilde form is on by default. It is changed via a "setq" statement in your .emacs.
Back on the main info menu about another 6 screens down is "customization" -- lots of info about .emacs in "Init file"
and futher down uner "Init File"
Most of the .emacs info is in the manual, not in info.
One thing to remember about emacs. Like Perl, emacs has more than one way to do things!
Bill Magill
-
sendmail localhost 'not qualified' error with aliaes
2003-03-14 20:18:29 anonymous2 [Reply | View]
hopefully i can get a solution:
thanx in advance
i've tried EVERYTHING i've found on multiple sites to get sendmail to werk: but errors crop up at different times all the time.
i can send and receive locally, send to a remote site, but cannot receive any mail from a remote server at all
I get this error when i compile the ALIASES file with the 'sudo newaliases' command:
[localhost:/etc/mail] gilgalad% sudo newaliases
WARNING: local host name (localhost) is not qualified; fix $j in config file
/etc/mail/aliases: 5 aliases, longest 8 bytes, 76 bytes total
i've re-installed macos x 10.2.4 a total of 6 times in the last three weeks, trying to get apache functioning (which is easy) WITH sendmail, uw-imap and hopefully squirrelmail for webmail
i had sendmail working great two weeks ago, but apache choked bad...
they dont seem to function properly: why?
because there is WAY too many 'hint' and 'install steps' pages online that are each and every one DIFFERENT.
nothing works TOGETHER at all and i if this seems blurry, its because i'm weeping in rage and frustration on the keyboard...
thanx in advance
inbredman@email.com
-
Exec format error at boot time
2003-03-12 15:42:58 mariox19@mac.com [Reply | View]
First off, I'm running 10.1.5 and ran the sendmail update, although afterwards I thought perhaps I shouldn't have. (Software update tempted me!)
The new sendmail will not start at boot time. I have everything configured the way the "Update to Terminal part 3" article stated, and even had a look at this Jaguar article.
The entry created at boot time in the system.log file reads:
SystemStarter: Exec failed for item /System/Library/StartupItems/Sendmail: Exec format error
With that, sendmail is not running.
Strangely enough though, if I run this command manually:
sudo /System/Library/StartupItems/Sendmail
sendmail starts up fine!
I cannot for the life of me understand why it should work after booting when I do it, but not at boot time when SystemStarter tries to do it. (Yes, I have MAILSERVER=-YES-)
Does anyone have any idea? Help! I'm a little short of cash to buy Jaguar at present.
Thanks! -
Solved
2003-03-14 06:49:46 mariox19@mac.com [Reply | View]
This is a hack, but it seems to have worked:
In the startup script for sendmail, located at, /System/Library/StartupItems/Sendmail/Sendmail, I added a line before the commands to start sendmail:
sleep 10
It seems that allowing the computer a pause, for some reason, allows sendmail to launch properly.
I don't know how little a pause you can get away with -- I got tired of fooling around with the whole darn thing after a while.
As always, your mileage may vary.
-
Better Soloution
2003-05-22 04:53:50 haz [Reply | View]
Hi,
A better soloution to this problem (which is wide spread) is to edit your /System/Library/StartupItems/Sendmail/StartupParameters.plist
Where it says "OrderPreference" type "Last" like this :
OrderPreference = "Last";
So my StartupParameters.plist looks like this :
{
Description = "Sendmail mail server";
Provides = ("SMTP");
Requires = ("DirectoryServices");
Uses = ("Disks", "Network Time", "NFS");
OrderPreference = "Last";
}
This should work as it worked for me (running 10.2.6)
All this does is it tells the OS to start sendmail after it has started all the apps in "Uses" and "Requires".
For more info on startup scripts go to
http://developer.apple.com/techpubs/macosx/Essentials/SystemOverview/BootingLogin/chapter_4_section_12.html
Hope this has helped
Haz
-
m4: command not found - please help
2003-03-12 15:11:33 macmartin [Reply | View]
the command:
m4 /usr/share/sendmail/conf/m4/cf.m4 /etc/mail/config.mc > /tmp/sendmail.cf
on page two gives me:
m4: command not found
I´m running OS X 10.2.4
who can help me so that I can go on get this working? -
m4: command not found - please help
2003-03-12 15:19:47 James Duncan Davidson |
[Reply | View]
Install the developer tools and restart Terminal.app.
-
Security update 2003-03-03 problems
2003-03-06 10:20:58 jzsimon [Reply | View]
Anyone else having problems with sendmail after having it patched with Security update 2003-03-03?
I can't get local mail to get sent locally. That is, before the update, my crontab jobs would mail their results to root@localhost, which would forward it to the unix mail account of a user (me), which I would then pick up via IMAP running locally.
Now, the mail doesn't stay local. It either gets sent out to a mail server on my local net (if my computer has a hostnam that can be extended into a valid domain), or I get an error message (delivered locally!) that the sending domain isn't valid so the mail won't be sent.
Embarrasingly, this was discovered by the SysAdmin of my local network, who was receiving my mail sent to his root instead of mine. :(
Any suggestions how to keep the mail local? -
Security update 2003-03-03 problems
2003-03-12 15:22:40 James Duncan Davidson |
[Reply | View]
I hate to say this, but I haven't seen any problems with my setup after the 03/03/03 update. Mail in and out of my 6 domains has been just fine. -
Fixed Better?: Security update 2003-03-03 problems
2003-03-07 12:46:53 jzsimon [Reply | View]
This also worked for me and appears to be a "cleaner" fix. It is courtesy of RonLP via MacFixit:
--------------
The updated sendmail also appears to ignore the /locations entries in NetInfo. If you must have a custom sendmail.cf, which we must, then you needed to set the /locations/sendmail/sendmail.cf property to the path. This worked fine before the 10.2.4 update and security release with the following NetInfo entry. It no longer works and you must use the sendmail command with a -Am flag to force it to read and /etc/mail/sendmail.cf file when sending.
----------------
So what did was
1) undo the fix suggested above
2) kill both running sendmail processes
3) backup /System/Library/StartupItems/Sendmail/Sendmail
4) edit the same file to put a "-Am" in the first line calling sendmail
5) restart sendmail with "sudo SystemStarter -v start SMTP"
-
Fixed: Security update 2003-03-03 problems
2003-03-06 15:13:59 jzsimon [Reply | View]
I got this from gregwelch via MacFixit, and it worked beautifully:
--------------
So I don't know if this will fix your problem, but I discovered that apparently there is some confusion (so I read) in the Apple build of sendmail, about whether it should be looking at /etc/mail/sendmail.cf or /etc/mail/submit.cf. It might actually look at both.
So I simply did...
sudo mv /etc/mail/submit.cf /etc/mail/submit.cf.old
sudo ln -s /etc/mail/sendmail.cf /etc/mail/submit.cf
I restarted sendmail and viola, it all works again.
Good luck! Use at yoru own risk, be careful, etc.
--greg
---------------
I did this, killed both sendmail processes, executed:
sudo SystemStarter start SMTP
to properly restart sendmail and everything is wonderful again.
Thanks again greg -
Fixed: Security update 2003-03-03 problems
2003-09-09 15:56:30 anonymous2 [Reply | View]
If you have a "client"-type machine, and just want to send all locally generated mail to your local mail hub, this might work better:
Edit /etc/mail/submit.cf, and find the comment about "Smart" relay hosts
Replace the line following it (normally "DS") with the two lines
DSmailhost.example.com
DHmailhost.example.com
where 'mailhost.example.com' is the name of your mail host.
-
Fixed: Security update 2003-03-03 problems
2003-12-07 04:14:04 anonymous2 [Reply | View]
For those wishing to stick to the "DO NOT EDIT THIS FILE! Only edit the source .mc file." message :-) then the equivalent definitions for config.mc are:
define(`SMART_HOST',`mailhost.example.com')
define(`MAIL_HUB',`mailhost.example.com')
I used "localhost" for my domain and it worked fine the first time; I have yet to reboot to check it's permanent!
-
POP not accepting connections
2003-03-05 10:19:15 anonymous2 [Reply | View]
I have followed the instructions here verbatim, and I can use Sendmail for outgoing mail, but when I go to check mail, I get connection refused errors.
Any ideas on what I need to do to configure POP to work properly?
Thanks,
Chris -
POP not accepting connections
2003-03-12 15:23:00 James Duncan Davidson |
[Reply | View]
Check to see if you have your firewall on. If you've enabled the firewall, you'll have to make sure that you are allowing the POP port through (port 110).
-
Typo in SMART_HOST line?
2003-03-04 19:11:12 anonymous2 [Reply | View]
Shouldn't there be a comma between SMART_HOST and the name of the host in the define? -
Typo in SMART_HOST line?
2003-03-12 15:26:20 James Duncan Davidson |
[Reply | View]
Yes, you're right. There should be.
-
Sendmail doesn't work after security update
2003-03-04 12:41:20 anonymous2 [Reply | View]
Ok..another update... and, of course, sendmail doesn't work yet again! Maybe time for pc/switch...any help would be appreciated. (BTW, I'm receiving NO error messages...it acts as if everyting is working, but the mail is never sent) -
Sendmail doesn't work after security update
2003-03-12 15:24:22 James Duncan Davidson |
[Reply | View]
I hate to say it, but my setup continues to work flawlessly after the 03/03/03 update. I haven't seen a burp.
-
help! sendmail again....
2003-03-04 06:43:37 anonymous2 [Reply | View]
I've configured sendmail as it said in the article. However, when I use mail to send mail, I get the following result (using -v switch with mail):
'relaying to <cmayo67041@aol.com> prohibited by administrator
Valid RCPT TO <recipient> must precede DATA
>>>RSET'
and the mail gets shunted locally to /var/mail instead.
Does anyone have a solution - I'm out of my depth here.
Thanks.
Chris Mayo
-
Simple mail sending via relay - works with PHP
2003-03-02 18:38:53 cander [Reply | View]
I was trying to figure out how to just send email from my iMac. I didn't need to receive mail on the mac. It was originally motivated by trying to send mail from PHP, but there are other cases when I wanted to send mail from a shell script. Either way, I needed to be able to invoke sendmail to relay to a SMTP server.
I tried setting the smart relay host, DS, which usually works on most Unix machines. But it wasn't working. I eventually realized that the NetInfo tweaking referred to in the article was needed, even if I wasn't running a server.
Before I figured that out, I created a minimal sendmail.cf file that uses the nullclient FEATURE. This might be of use to others, so here it is:
VERSIONID(`$Id: generic-darwin.mc,v 1.3 2002/04/12 18:41:47 bbraun Exp $')
OSTYPE(darwin)dnl
DOMAIN(generic)dnl
undefine(`ALIAS_FILE')
FEATURE(`nullclient',`smtp.my.isp.com')dnl
define(`confDONT_BLAME_SENDMAIL', `GroupWritableDirPathSafe')dnl
-
What is purpose of 2nd sendmail session?
2003-02-26 14:36:47 anonymous2 [Reply | View]
Modern versions of sendmail like the one in OS X separate the handling of mail coming in and mail originating here to go out. The first line starting up sendmail is the one that listens on port 25 for incoming mail and handles it. The second line starting up sendmail with a different configuration file waits for messages originated on the Mac and sends them out. Because of the "q1h" argument, both of these run as daemons and process the queue once every hour. The first one uses /var/spool/mqueue as its queue directory; the second uses /var/spool/clientmqueue.
I have had the same crash and agree that it was due to /var/spool/clientmqueue not being emptied. But looking at the crash log, the impllication was that the error occurred while processing the receipient name. In my case, the receipient name was "root" as discovered by looking in the qfXXXXXXX file in the queue directory for the line that begins with "R". I changed the recipient from root to my email address and the queued message was sent out the next time the queue was processed.
-
PPP & sendmail ; don't want to queue when not connected
2003-02-18 16:43:49 anonymous2 [Reply | View]
Hi.Is there a way I can get sendmail not to queue mails if its not going to be able to send it right away, like when I'm not connected to the internet? Basically I want mail to stay in my Mail.app outbox until it actually gets sent.
-
extra line breaks in sendmail.cf?
2003-02-17 08:01:59 anonymous2 [Reply | View]
I get this error:
554 5.0.0 /etc/mail/sendmail.cf: line 51: unknown configuration line "
"
...and sendmail won't start.
It looks as though there are extra linefeeds in the sendmail.cf that update is creating, but nowhere in update or config.mc can I figure where they're getting added... any thoughts?
-
m4: /usr/share/sendmail/conf/m4/cf.m4: No such file or directory
2003-02-14 06:26:19 anonymous2 [Reply | View]
I keep getting this error. Looks like I'm missing the cf.m4 file. I reinstalled the developer tools and selected the BSD component, still getting the same error. Any ideas?
Is it possible to compile the file using any other utilities? -
m4: /usr/share/sendmail/conf/m4/cf.m4: No such file or directory
2003-04-11 16:47:27 douglasgb [Reply | View]
I tried to install just the BSD portion of the Dev Tools, but you need more than that. You can try custom installing one piece at a time until you get m4, but I just installed the whole thing.
-Douglas
-
Nevermind...
2003-02-13 21:01:23 mapache [Reply | View]
I had a problem, which turned out to be that my /etc/mail/aliases was missing, and sendmail was dying rather this ignoring it...
-
Sendmail or something simpler
2003-02-01 19:26:18 anonymous2 [Reply | View]
If I just want to set up a computer to send and receive mail via a POP account with my ISP using Pine on 10.2.2, can I setup sendmail as the MTA here or is there a simpler way?
Any thought would be appreciated. Thanks.
mac.tech2@verizon.net -
Sendmail or something simpler
2003-03-12 15:28:13 James Duncan Davidson |
[Reply | View]
You don't need an MTA to use mail with your ISP. Just give Pine your ISPs mail server information and you are good to go.
-
Why two processes?
2003-01-31 06:42:31 anonymous2 [Reply | View]
Hi,
why start two processes? What does the sendmail process with the -C submit.cf do that the daemonized sendmail would not do?
Please also note that the "restart" part of the startup item script does only kill one of these processes, but starts two.
Thanks,
Dirk -
Why two processes?
2003-04-17 13:46:45 anonymous2 [Reply | View]
For about a year or so, sendmail has been split into two processes. I'm not sure how the jobs get split up, but one of them pulls messages out of the queue of mail to be delivered, and the other one puts messages into that queue (I think). Anyway, you only have to kill the one that pulls from the queue, since that's the process that does relaying.
-
Airport Base Station
2003-01-27 00:42:45 rakka_dakka [Reply | View]
any ideas on how to get sendmail to work behind a base station. i can send mail to external addresses but cannot recieve of course.
thanks -
Airport Base Station
2003-04-22 19:10:50 anonymous2 [Reply | View]
Well maybe it is because you are a loser!
RakkaLoser -
Airport Base Station
2003-03-12 15:28:51 James Duncan Davidson |
[Reply | View]
You'll need to configure your airport base station to do port forwarding of port 25 to your machine on the internal network.
-
NetInfo /locations/sendmail considered harmful? (Can't find submit.cf)
2003-01-26 17:05:10 hiendohar [Reply | View]
Despite what /etc/mail/README says, updating Netinfo as indicated appears to cause problems. I noticed this because sendmail couldn't find the MSP queue (/var/spool/clientmqueue) -- although it is specified in submit.cf.
The problem seems to be that Sendmail can't find submit.cf. Command-line option -Ac doesn't fix this, but if you specify the path (-C/etc/mail/submit.cf), everything is hunky-dory.
I chose to unset the Netinfo property, and then -Ac worked. Perhaps there are other Netinfo properties that sendmail is looking for. Until it's clear what those are, I'm going to leave Netinfo alone.
I found another account of this problem from Daniel J. Luke at:
http://www.sendmail.org/compiling.html
-
An easier to setup sendmail +it works with PHP mail() function
2003-01-11 11:08:43 anonymous2 [Reply | View]
a simple install package I found from version tracker plus it works with PHP mail() feature
http://www.ryandesign.com/download/enableSendmail.dmg.gz
: )
-
An easier way to setup sendmail + it works with PHP mail() feature
2003-01-11 11:05:03 anonymous2 [Reply | View]
-
Privacy Options
2003-01-11 06:48:08 anonymous2 [Reply | View]
My friendly neighborhood Solaris Sendmail admin at work noted that when one telnets to a sendmail server:
% telnet domain.com 25
you will get a reslt that looks kinda like this:
Trying X.X.X.X...
Connected to domain.com.
Escape character is '^]'.
220 domain.com ESMTP Sendmail 8.12.2/8.12.2; Sat, 11 Jan 2003 09:33:56 -0500 (EST)
which gives potentil hackers two clues: WHAT you are running and WHAT version. This (he said) is a *BAD* thing.
He suggested editing the sendmail.cf file and changing the privacy options to:
# privacy flags
#O PrivacyOptions=authwarnings
O PrivacyOptions=goaway,restrictmailq,restrictqrun
whichs sounds like a GOOD thing, however doing so and restarting sendmail (sudo kill -HUP [PID]) or even running the update scrip seems to have no effect.
Any suggestions?
thanks
Steve chambers
amigasteve (at) comcats (dot) net -
Privacy Options
2003-06-10 17:54:47 anonymous2 [Reply | View]
Do a search in sendmail.cf for 'SmtpGreetingMessage'.
Change from ...
O SmtpGreetingMessage=$j Sendmail $v/$Z; $b
to :
O SmtpGreetingMessage=$j $b
then a simple killall -HUP sendmail should fix it. (This works on RedHat 8)
End result when you try to telnet is ...
# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 localhost ESMTP Wed, 11 Jun 2003 10:50:07 +1000
quit
221 2.0.0 localhost closing connection
Connection closed by foreign host.
Cheers.
NB: localhost names changed to protect the inane
</drivvel> -
Privacy Options
2003-01-11 06:54:02 amigasteve [Reply | View]
OK so you can't edit an anonymous article for spelling AFTER you post it. AND I sound like a doofus because I can't spell before my fourth cup of coffee for the day.
please feel free to send any comments about my spelling ability. I am now wearing my flame retardent underwear and am properly ashamed.
D'OH!
amigasteve (at comcast (dot) net
-
SOLVED: m4: ../m4/cfhead.m4: No such file or directory
2003-01-09 15:29:59 anonymous2 [Reply | View]
In the update script, add the line
'cd /usr/share/sendmail/conf/m4/'
just before the first m4 command.
-
which port do i need to open to receive mail through apple firewall?
2003-01-05 09:55:33 wowmomnyc [Reply | View]
i can't receive mail while the firewall is on. i've opened port 993. is there another port that i need to open?
thanks,
barton
-
using Mail.app to check unix mail
2003-01-03 23:11:47 jeffschuler [Reply | View]
How can I use Mail.app to check mail that comes to my unix user account?
I thought the Accounts section of Mail preferences used to have an option for this, but no longer....?
Thanks much for all the rest of the help. Everything went quite well for me, except I had to remove the changes I made to NetInfo (% sudo niutil -create . /locations/sendmail) for sendmail to work properly... -
using Mail.app to check unix mail
2003-01-11 22:18:50 docwalker [Reply | View]
Create a new IMAP mail account in Mail.app.
Account Information tab:
Incoming mail server: 127.0.0.1
User name: {your Mac's login name}
Password: {your login password}
Outgoing Mail Server: 127.0.0.1 (Options...Server Port: 25, SSL is unchecked, Authentication: None, User Name: (blank), Password: (blank))
Advanced tab:
Account Directory: ~/Library/Mail
IMAP Path Prefix: Mail/
Port: 993
Use SSL
Authentication: Password
Install IMAP, if you haven't already done this.
curl ftp://ftp.cac.washington.edu/imap/imap.tar.Z > imap.tar.Z
uncompress imap.tar.Z
tar xf imap.tar
sudo mv imap-2002a /usr/local/share
sudo chown -R root /usr/local/share/imap-2002a
cd /usr/local/share/imap-2002a
sudo make clean osx SSLTYPE=unix EXTRACFLAGS=-DDISABLE_REVERSE_DNS_LOOKUP (say y to warning)
sudo cp /usr/local/share/imap-2002a/imapd/imapd /usr/local/bin/imapd
sudo chown root /usr/local/bin/imapd/imapd
sudo chmod a-w /usr/local/bin/imapd/imapd
sudo mkdir -p /System/Library/OpenSSL/certs
sudo openssl req -new -x509 -nodes -out \
/System/Library/OpenSSL/certs/imapd.pem -keyout \
/System/Library/OpenSSL/certs/imapd.pem -days 3650
(enter relevant info at prompts)
Modify inetd.conf file:
sudo pico /etc/inetd.conf
Add the following lines to end of file:
imap stream tcp nowait root /usr/local/bin/imapd imapd
imaps stream tcp nowait root /usr/local/bin/imapd imapd
Save and exit.
You should now be able to check your unix mailbox from Mail.app.
-
What is purpose of 2nd sendmail session?
2003-01-02 11:56:17 docwalker [Reply | View]
In general, sendmail works for me. I am able to send and receive email to external email addresses from my local machine. I've noticed strange errors in the logs though.
In /System/Library/StartupItems/Sendmail/Sendmail, the following lines open two instances of sendmail:
/usr/sbin/sendmail -bd -q1h
/usr/sbin/sendmail -C /etc/mail/submit.cf -q1h
What is the purpose of the second one. I noticed that the 1st one runs as root and the second one runs as smmsp. What's the significance of this?
Also, I keep getting an hourly error in CrashReporter. It used to dump the error in the console.log, but I created the file with the correct permissions in the CrashReport directory. It appears to do with the -q1h settings above since something happens each 1 hour.
system.log:
Jan 2 13:10:29 xxx crashdump: Couldn't find or create: /etc/mail/Library/Logs/CrashReporter
Jan 2 13:10:29 xxx crashdump: Crash report written to: /Library/Logs/CrashReporter/sendmail.crash.log
sendmail.crash.log:
Date/Time: 2003-01-02 13:10:29 -0600
OS Version: 10.2.3 (Build 6G30)
Host: xxx
Command: sendmail
PID: 1056
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000
Thread 0 Crashed:
#0 0x9007a1f0 in dns_is_local_name
#1 0x9007a4a4 in res_send
#2 0x90079610 in res_query
#3 0x90079b2c in res_querydomain
#4 0x90079980 in res_search
#5 0x0001ff90 in getmxrr
#6 0x0001f918 in hostsignature
#7 0x0004c1a0 in sendtoargv
#8 0x00049f64 in recipient
#9 0x00036da8 in maplocaluser
#10 0x0004a504 in recipient
#11 0x0003ca68 in doworklist
#12 0x0003b6c0 in dowork
#13 0x0004148c in set_def_queueval
#14 0x0003a0c0 in run_work_group
#15 0x000395b8 in runqueue
#16 0x00006394 in main
#17 0x000019a8 in start
#18 0x00001828 in start
I cannot seem to find any info on the thread 'dns_is_local_name'. Is this causing the problem? If so, what's the fix? Is it related to the following mail.log error:
Jan 2 13:10:27 xxx sendmail[1051]: gethostbyaddr(10.102.43.222) failed: 3
Rx -
What is purpose of 2nd sendmail session?
2003-09-19 14:28:06 anonymous2 [Reply | View]
could be related to the permissions on the binary & queue directory - http://www.sendmail.org/compiling.html has a section on correcting it manually for some instances of Mac OS X -
What is purpose of 2nd sendmail session?
2003-02-18 09:03:42 info@cilly.com [Reply | View]
The second process is for queueing local submits. This crashdump is produced, if the dir /var/spool/clientmqueue is not empty and cannot be emptied or has items in queue which can't be managed by the daemon anymore, since they are too old.
First kill all your sendmail-processes, then sudo rm -Rf /var/spool/clientmqueue and finally start sendmail again with /System/Library/StartupItems/Sendmail/Sendmail start hopefully the crashdump will disappear. Also delete sendmail.crash.log since it may have grown to a large crash file. ;-)
Michael C. Haller -
What is purpose of 2nd sendmail session?
2003-02-17 04:09:41 anonymous2 [Reply | View]
I have the same problems, with or without DNS-Server:
root 467 0.0 0.0 1944 392 ?? Ss 5:41AM 0:01.22 /usr/sbin/sendmail -bd -q15 -L sm-mta
smmsp 470 0.0 0.0 1944 316 ?? Ss 5:41AM 0:00.06 /usr/sbin/sendmail -Ac -q15 -L sm-msp-queue
Since -C is for debugging only, I deleted the netinfo entry and use -Ac instead. Also from the manpages:
-C <file> Use alternate configuration file.
Sendmail refuses to run as root if an alternate configuration file is specified.
-
Help! Sendmail stopped working!
2002-12-21 17:17:33 anonymous2 [Reply | View]
I get this message in the mail log:
Dec 21 17:17:00 localhost sendmail[956]: gBM1Fj5e000956: ruleset=check_mail, arg1=<patrickvbn@netscape.net>, relay=imo-d01.mx.aol.com [205.188.157.33], reject=451 4.1.8 Domain of sender address patrickvbn@netscape.net does not resolve
Dec 21 17:17:00 localhost sendmail[956]: gBM1Fj5e000956: from=<patrickvbn@netscape.net>, size=381, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=imo-d01.mx.aol.com [205.188.157.33]
Any suggestions?
-
setreuid(0, 502): Operation not permitted (r=1, e=1)
2002-12-17 16:20:59 anonymous2 [Reply | View]
As of OS X 10.2.2 I get the error setreuid(0, 502): Operation not permitted (r=1, e=1) whenever I try to send mail to myself on the local machine (only root and my account are defined). Prior to 10.2.2, I am sure I could send locally. This is more an annoyance than anything else because sendmail sends mail to the outside world.
-
BTW. webmin
2002-12-17 00:28:09 anonymous2 [Reply | View]
For those having trouble setting up sendmail on os x - consider installing webmin - its a web based interface to setting up lots of things about your box (DNS, sendmail, CVS) -- it will simplify solving many issues. -- It helped me get my referrers and accepted hosts working -- free at www.webmin.com
-
xinetd vs daemon
2002-12-17 00:24:27 anonymous2 [Reply | View]
Hi - I briefly tried to get qmail working - read that there are issues with it on HFS+ partitions but it introduced me to xintd - I've seen ways of setting up sendmail using xinetd that are "more secure" than using is a a daemon. I'm wondering if any had set up sendmail on OS X using xinetd rather than running the daemon - in general, what would be other conseqences (is the daemon faster? etc) just wondering...
cyberRodent (.com)
-
problems w. 10.2.1
2002-12-11 16:48:51 anonymous2 [Reply | View]
I've made the changes as specified, and get the following in /var/log/mail.log:
------------------
Dec 11 16:42:17 Rover sendmail[686]: gBC0gH1G000686: from=jmiller, size=46, class=0, nrcpts=1, msgid=<200212120042.gBC0gH1G000686@rover.local>, relay=jmiller@localhost
Dec 11 16:42:18 Rover sendmail[688]: gBC0gH1G000686: to=jmiller@example.com, ctladdr=jmiller (501/20), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=30042, relay=mail.example.com. [99.99.99.99], dsn=5.6.0, stat=Data format error
Dec 11 16:42:18 Rover sendmail[688]: gBC0gH1G000686: gBC0gI1F000688: DSN: Data format error
Dec 11 16:42:18 Rover sendmail[688]: gBC0gI1F000688: to=jmiller, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31070, dsn=2.0.0, stat=Sent
-------------------------------------
... and no message is sent.
Does anyone have any ideas? I had mail working in 10.2 (.0), so there may be something peculiar to this update. (BTW, I'm not on 10.2.2 because of kernel panics on wake-from-sleep on my Lombard...)
Thanks,
Jim Miller
-
problems w. 10.2.1
2003-02-15 19:09:26 anonymous2 [Reply | View]
Jim,
If you get kernel panics or the Lombard locks it may be a bug in the CPU or bad RAM. Seach MacNN.com and MacFixIt.com for more info. I was bitten by the CPU bug so I know. I haven't had one kernel panic since I replaced the CPU.
Good Luck
Keith Russo
-
Can't receive mail, sends ok, telnet ok
2002-12-07 00:41:30 anonymous2 [Reply | View]
I followed these instructions, the only hitch being that when I tried to run the update script it wouldn't work. But I just ran the command manually instead
% m4 ../m4/cf.m4 yourdomain.mc > /tmp/sendmail.cf
% sudo cp /tmp/sendmail.cf /etc/mail/
I can send mail just fine from the terminal. However, when I send mail from web-based accounts to my unix account they don't arrive.
I'm a bit of a unix newbie but I have "learning unix for Mac os X", "sendmail", (the 3-inch thick o'reilly tome), and "Mac os X for unix geeks" scattered around the room. They don't seem to help, although I must admit I can't make sense out of "sendmail". Any ideas?
Oh, I ran the
%telnet localhost 25
command and it worked as it should. The port seems to be open and all. I even tried temporarily disabling my firewall to see if it was still blocking the port but that didn't help.
frustrated...
-
Successfully sending email via SMTP using PHP on OS X
2002-11-26 14:50:46 anonymous2 [Reply | View]
Numerous people on this and other discussion boards, including the author of this post, have struggled with a simple objective: How to set up OS X 10.2 (Jaguar)'s Apache/PHP environment to process scripts which send email out over the internet?
The PHP Mail function fails for numerous people who:
[1] Are not running OS X on a qualified domain name (but rather just dialing up to an ISP and accepting a DHCP IP address)
[2] Do not wish to configure SendMail, but prefer to simply use the SMTP server of their ISP
* I don't know why the PHP Mail function is failing for OS X users, but nobody else has posted an answer to my knowledge ;-). Adding a valid php.ini file is insufficient. And configuring SendMail to work for this seems like severe overkill.
HERE'S A WORKING SOLUTION:
The following site contains a php class and sample email test script which enable you to communicate directly with your ISP's SMTP server:
http://www.phpguru.org/smtp.html
1. download it and place both files in your web server document directory, at the same level. You may place both files in a subdirectory of the web server document directory if you wish (e.g. http://localhost/~username/php_email_test/)
2. Edit the example test php script to use SMTP parameter values valid for your ISP account, and format a test message to a valid email address.
3. Execute the sample php script (which uses the PHP 'include' function to access the SMTP class script sitting in the same directory.
With good fortune, you will find this works. Good luck.
-
procmail eating up all my CPU
2002-11-26 02:49:14 tamen [Reply | View]
Ive set up my web/mail server, and it works. Sort of. I can get and send email just fine. Ive got two domains hosted at home, both fully working, both mail and web.
But Ive got at least two procmail procceses running all the time, sometimes four, and they are eating up all my CPU and using a lot of memory. Earlier today I saw 9 swapfiles.
What is procmail doing? I recieve about two emails a day, and sends about as many.
Hope you can help :) -
procmail eating up all my CPU
2003-12-14 17:49:26 wsfryer [Reply | View]
I'm experiencing the same problem on practically an identicle SOHO situation as you've described. It only started yesterday. Prior to that procmail has behaved very well. I'm presently at a loss as to the sudden cause of this. If you have any insights, I'd love to hear them. Mind you, my mail server is down right now for a system upgrade. :( I expect to be back up and running in the next 24hrs though, and look forward to anything you can share from your experience. Btw, my platform is OpenBSD 3.4 (I just upgraded from 3.1 today). My MTA is qmail.
-
can't send mail outside
2002-11-23 05:00:41 julious [Reply | View]
First of all, I would like to thank the author of this article for his great work.
I configured sendmail exactly as I read it in the article. I've been able to send mail to several users on my computer, but I still can't send mail to e-mail adresses that are not in my localhost. If I try to do so (i.e. sending a mail to someone@provider.com), the mail gets redirected to my local mailbox. if I try do to it with a GUI mail client (such as Mail.app), an alert box is displayed, saying that the server refused the connection on port 25. I first tried to open the port 25 via the system preferences and I finally had to disable the whole Jaguar built-in firewall.
Here is the content of my access file :
wanadoo.fr RELAY
192.168.0 RELAY
127.0.0.1 RELAY
and here is what happens when I try to telent my own computer :
telnet 127.0.0.1 25
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host
So I guess there is a problem with my the port 25. Anyone has any clue how to fix that ?
-
logging mail to /var/mail/account_name, but can't POP to receive
2002-11-20 14:37:21 anonymous2 [Reply | View]
I have setup an xserve fillowing the directions in this article exactly, and everything works... except, I can't actually access any email from the server via POP.
I have accounts setup with the workgroup manager, it it appears that that program (utilizes netinfo) takes priority over anything setup in my /etc/mail dir. any ideas on how to setup a user in workgroup manager, and have the info in netinfo ignored for these accounts?
-
Sendmail Conifiguration an 10.2.1 is not working
2002-11-19 10:45:54 anonymous2 [Reply | View]
Hallo,
I have been searching the web days and weeks and now I hope to find somebody who can help me. I configured everything as explained in the article, but sendmail is not working. So - I must have done wrong something. Here is what my terminal is telling me:
[goofy:~] stephanv% mail -v stephan@gmx.de
Subject: d
d
.
EOT
stephan@gmx.de... Connecting to localhost via relay...
220 goofy.local. ESMTP Sendmail 8.12.2/8.12.2; Mon, 18 Nov 2002 00:34:07
+0100 (CET)
>>> EHLO goofy.local
250-goofy.local. Hello localhost [127.0.0.1], pleased to meet you
250 ENHANCEDSTATUSCODES
>>> MAIL From:<stephanv@goofy.local>
451 4.3.0 Temporary system failure. Please try again later.
stephan@gmx.de... Deferred: 451 4.3.0 Temporary system failure. Please try
again later.
Closing connection to localhost
>>> QUIT
221 2.0.0 goofy.local. closing connection
[goofy:~] stephanv%
--
What is the problem???
-
Can't send mail with php
2002-11-11 16:14:04 bmtndog [Reply | View]
I, like many others that have commented on this article, am unable to get php's "mail" function to work. I suspect it is some combination of masquarading, aliasing, host naming, blah.
Yet, mailing from php was my main objective in reading this article and following it's directions. All other things work, I can send and receive email from a number of accounts, some at my ISP and some hosted locally. And, it all integrates with Apple's mail app well.
A great follow up might be to help us get php mail working. Or, if anyone out there figures this one out, email me at one of my new email addresses:
anyone@blue.homeunix.net
Thanks.
-
Can't send mail now
2002-11-08 19:45:22 anonymous2 [Reply | View]
I followed all instructions in both articles. I can receive mail fine!
However, when I go to send mail using a POP account on my ISP, it does not work. It times out. I've tried my attbi account and my .mac account, neither works. Nor can I send mail using the local server. Apple mail seems to get confused, even when I say I want to use my attbi account for an outgoing message, it will attempt to connect to the local host....
Anyone see this?
Rick
-
Port blocked?
2002-10-21 15:48:29 anonymous2 [Reply | View]
Well I finally got sendmail configured... or so it appears. Whenever I try to connect it says the server refused the connection. The Firewall is NOT turned on, and I did a port scan and 25 isn't open. How can I open port 25?
-
Little addition
2002-10-18 16:46:54 flipmartin [Reply | View]
Many thanks for this great article!
Just a little tip, in case it would help someone with the same problem:
Following the article's direction, I addeddefine(`confDOMAIN_NAME', `$w.my.domain.com')to the config. However, the messages I sent were rejected by other SMTP servers because the sender address looked likemyUsername@myMachineName.my.domain.comwhich didn't resolve to a known IP (I guess myMachineName was taken from Rendez-vous).
I fixed it by changing the confDOMAIN_NAME definition todefine(`confDOMAIN_NAME', `my.domain.com'), and now the sender of my messages looks likemyUsername@my.domain.com.
-
RE: SMTP AUTH not available on 8.12.2., YES it is!!!
2002-10-16 05:52:00 anonymous2 [Reply | View]
It is not a matter of SMTP AUTH implemented or not on sendmail8.12.2 as far as I know "all" you have to do is to recompile sendmail in order to implement any SASL.
sendmail 8.10-8.12 support SMTP AUTH as defined in RFC 2554 which is based on SASL.
I haven't tried it yet but here is a link that should help:
http://www.sendmail.org/~ca/email/auth.html
Alvaro Arce -
RE: SMTP AUTH not available on 8.12.2., YES it is!!!
2002-12-17 02:57:56 idarmadi [Reply | View]
According to an article in sendmail.org, smtp auth is not compatible with saslv2 (which was in Jaguar). Cmiww.
You'll need to downgrade to sasl version 1.5.7.
Dave, where's the article you've promised?? :)
re,
idarmadi
-
THANK-YOU THANK-YOU!!!
2002-10-13 05:58:36 medazinol [Reply | View]
Wow, thanks for the great tutorial on setting up the "hairy beast".
I was able to learn enough to get sendmail up and running on my Lunix machine from this article. Up until now I've been using the great but expensive CommuniGate server from stalker.com on all my systems because I could never bother to learn sendmail (much less try and set it up).
Now I feel comfortable enough to use and set it up!
P.S. Folks, do yourselves a favor and go and get webmin from webmin.com. It really helped me to setup sendmail and some other stuff. Totally free too!
-
SMTP AUTH not available on 8.12.2.
2002-10-11 15:04:37 anonymous2 [Reply | View]
you will have to wait for apple to install the newer sendmail version for SMTP AUTH.
-
Telnet Works but PHP and WebServer do not
2002-10-09 02:56:10 anonymous2 [Reply | View]
Hello all,
I am able to send emails fine with sendmail by using telnet 127.0.0.1 25 (and then sending an email from the prompts). However when I use apache and a PHP script the mail never gets sent - even though mail.log shows that the email went through ok. Here's the mail.log:
Oct 8 19:51:12 G4 sendmail[512]: g992pCCS000512: from=www, size=157, class=0, nrcpts=1, msgid=<200210090251.g992pCCS000512@g4.g4.com>, relay=localhost
Oct 8 19:51:13 G4 sendmail[514]: g992pCCS000512: to=myemail@mail.com, ctladdr=www (70/70), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30068, relay=mail.pacbell.net. [64.164.98.12], dsn=2.0.0, stat=Sent (Ok.)
I checked out the file /var/mail/www and this error appeared for each email I tried to send using PHP:
Final-Recipient: RFC822; myemail@pacbell.net
Action: failed
Status: 5.1.8
Diagnostic-Code: SMTP; 553 5.1.8 <www@g4.domain.com>... Domain of sender address www@g4.domain.com does not exist
In addition I have noticed then when sendmail first starts up it spits out this error in mail.log:
File descriptors missing on startup: stdin, stdout, stderr; Bad file descriptor
Any suggestions on how I can get sendmail to work with apache and PHP?
thanks in advance
-
Server topology
2002-10-08 23:00:45 hamishb [Reply | View]
My server is setup with IP 192.168.xxx.xxx (fixed private IP) address. How does the setup in the article compare i.e. does it assume the DSL modem is plugged into the comptuer, or through NAT router, or doesn't it matter?
I would appreciate these kind of assumptions as to server topology (NAT, direct internet connection, hostname etc) being stated up front. That way I can readily convert your setup to mine.
thanks for the great site!
Hamish
-
SMTP AUTH
2002-10-08 09:31:07 anonymous2 [Reply | View]
As anyone find a solution to the SMTP_AUTH issue?
I would like to use my computer as a mail server but having anyone with access to internet able to send an email from my computer just sucks
-
Sendmail still complaining about world writable, localhost refuses port 25 connection
2002-10-07 15:41:29 anonymous2 [Reply | View]
I'm running sendmail under 10.2 behind a firewall with a lame ISP. That being said I'm having problems with config.mc. My config.mc file looks like this:
VERSIONID(`$Id: generic-darwin.mc,v 1.3 2002/04/12 18:41:47 bbraun Exp $')
OSTYPE(darwin)dnl
DOMAIN(generic)dnl
undefine(`ALIAS_FILE')
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')
define(`confDONT_BLAME_SENDMAIL', `GroupWritableDirPathSafe')
define(`confDOMAIN_NAME', `$w.blackbox42.no-ip.org')
define(`SMART_HOST' `mail.mindspring.com')
FEATURE(`smrsh',`/usr/libexec/smrsh')
FEATURE(local_procmail)
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')dnl
FEATURE(`genericstable', `hash -o /etc/mail/genericstable')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable')dnl
FEATURE(`access_db')dnl
MAILER(smtp)
MAILER(procmail)
Every time I run the update script I receive this error:
/etc/mail/sendmail.cf: line 94: fileclass: cannot open '/etc/mail/local-host-names': World writable directory
This also happens if I start sendmail on it's own:
blackbox# /usr/sbin/sendmail -OdontBlameSendmail=GroupWritableDirPathSafe -bd -q1h
451 4.0.0 /etc/mail/sendmail.cf: line 94: fileclass: cannot open '/etc/mail/local-host-names': World writable directory
My alias file:
blackbox# cat access
# sample access file
192.168.1.12 RELAY
127.0.0.1 RELAY
Tail of my log file:
Oct 7 18:26:15 bluebox sendmail[1648]: g96H24cR000611: to=test@aol.com, ctladdr=www (70/70), delay=1+05:24:11, xdelay=00:00:00, mailer=relay, pri=1830092, relay=localhost, dsn=4.0.0, stat=Deferred: Connection refused by localhost
Oct 7 18:26:15 bluebox sendmail[1648]: g95JxNnM011994: to=messiah@datavortex.net, ctladdr=www (70/70), delay=2+02:26:52, xdelay=00:00:00, mailer=relay, pri=1830109, relay=localhost, dsn=4.0.0, stat=Deferred: Connection refused by localhost
Oct 7 18:30:02 bluebox sendmail[1650]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 94: fileclass: cannot open '/etc/mail/local-host-names': World writable directory
Oct 7 18:30:02 bluebox sendmail[1650]: gethostbyaddr(192.168.1.12) failed: 3
The main problems I see are sendmail ignoring it's valum and not finding it's host name. Any clue as to what is causing this? -
Sendmail still complaining about world writable, localhost refuses port 25 connection
2003-10-30 05:24:58 anonymous2 [Reply | View]
Hi there
I am experiencing the exact same problem.
I have the dont_blame parameter set, I also modified the sendmail startup file with the appropriate parameter, and I just get the exact same message as you:
/etc/mail/sendmail.cf: line 108: fileclass: cannot open '/etc/mail/local-host-names': World writable directory
I made sure that all the directories had correct permissions for groups, but I remain stuck....
Could you get this solved finally? If yes, how?
Tx and cheers
bc@ensuran.org -
Sendmail still complaining about world writable, localhost refuses port 25 connection
2003-05-13 08:04:52 anonymous2 [Reply | View]
You have to check the permissions on / and all the subdirectories like /etc, /etc/mail for write permissions. If there is no write permission on / or /etc then give the write permissions and check.
This will set the permissions for every directory sendmail needs to be
non-group writable:
sudo chmod go-w / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue /private
Check all these permissions are same as below.
drwxr-xr-x 45 root sys 3584 Feb 3 10:24 etc
drwxr-xr-x 2 root mail 512 Feb 3 11:54 mail
-rw-r--r-- 1 root bin 153 Sep 30 10:24 Mail.rc
-rw-r--r-- 1 root bin 1201 Sep 30 10:24 aliases
-rw-r--r-- 1 root mail 0 Oct 10 04:58 aliases.dir
-rw-r--r-- 1 root mail 1024 Oct 10 04:58 aliases.pag
-rw-r--r-- 1 root bin 5266 Sep 27 19:07 helpfile
-rw-r--r-- 1 root bin 0 Sep 24 2001 local-host-names
-rw-r--r-- 1 root bin 1829 Sep 30 10:19 mailx.rc
-r--r--r-- 1 root bin 34924 Sep 30 10:24 main.cf
-r--r--r-- 1 root bin 35625 Oct 1 05:09 sendmail.cf
-r--r--r-- 1 root other 35625 Oct 1 05:09
sendmail.cf.pre110615-05
lrwxrwxrwx 1 root root 8 Sep 30 10:24 sendmail.hf ->
helpfile
-r--r--r-- 1 root bin 35625 Sep 30 10:24 subsidiary.cf
-rw-r--r-- 1 root bin 5 Sep 24 2001 trusted-users -
Sendmail still complaining about world writable, localhost refuses port 25 connection
2005-12-22 06:18:12 microbix [Reply | View]
edit manually file sendmail.cf
nano -w /etc/mail/sendmail.cf
replace line Fw/etc/mail/local-host-names with line
Fw-o /etc/mail/local-host-names
identically (if you got the same error for trusted-users)
Ft/etc/mail/trusted-users
with line Ft-o /etc/mail/trusted-users
i spent 4 hours to see that. if you rebuild sendmail.cf from sendmail.mc you can modify the last file (sendmail.mc) to suit your needs
i recommend to you to use webmin (install with yum) for simpler sendmail administration
-
Nothing Happening on Port 143
2002-10-07 01:14:14 anonymous2 [Reply | View]
I have the nagging feeling I'm going to be embarrassed at having missed something obvious, but...
After following the steps in this article and its brother, I can indeed make an SSL-based IMAP connection on port 993. I cannot get anything on port 143, and telnetting shows nothing answering there. I don't know enough to know if this is a problem with sendmail or UW IMAP or what.
-
Certificates fail on PC
2002-10-06 20:01:26 anonymous2 [Reply | View]
Alright, set up my server and everything works PERFECTLY on my Macs using both Entourage and Mail.app. I just set my wife's mahine up - she's using a PC with Win 2k and Outlook XP. She already had a userID and file services on our Jaguar server, so i set up he account and voila - it worked, HOWEVER, I have 2 problems...
1. When I connect to the our sendmail server, Outlook squaks about the SSL certificate, and asks if the server can be trusted, and it does it EVERY TIME I try to connect. The Macs don't do this. Is there a setting in Outlook our do I need to update it?
2. I can't seem to delete messages on her account. Mine works fine, but I only get lines through the messages, and they don't delete. Will they go away eventually?
If anyone can help, please contact me at
stumped@wileytradegroup.com
Thanks in advance!
-
External mail with IP address stays queued
2002-10-04 11:35:45 macrobotics [Reply | View]
To test my server (before I change my domain to point to my new fixed IP address), I have sent mail to user@[w.x.y.z], where the user name and IP address are valid, from an external computer. The mail arrives and is put into the queue, but is not delivered to the user account. The mail log entry is of the form:
Oct 4 11:32:02 MacRobotics-Server sendmail[810]:g940BCQP000613: to=<user@[w.x.y.z]>, delay=17:20:49, xdelay=00:00:00, mailer=estmp, pri=2190937, relay=[w.x.y.z], dsn=4.0.0, stat=Deferred: Operation timed out with [w.x.y.z]
The [w.x.y.z] address is in my local-host-names and access files.
Mail send locally (to just "user") is delivered to the appropriate account. Outgoing mail is delivered fine.
What am I missing to get this test mail to work, or do I have to wait until my domain name gets moved (but I really don't want to do this until I get mail checked out!)?
Thanks in advance for any advice.
Kevin Coble
MacRobotics -
Issue resolved - update script doesn't restart deamon
2002-10-06 18:55:01 macrobotics [Reply | View]
Ok, I found the problem after some trial and error. I was trying to start the sendmail program with a -d21.1 option to see what was going on, when I noticed that the daemon instance of sendmail was not restarted by the startup-items "Sendmail restart" command that is in the "update" script outlined in this article.
It took a full system restart of my machine, and now mail is working properly (one of the downsides to having a stable operating system!)!
I hope anyone else caught in this issue can benefit from my learning process!
Kevin Coble
MacRobotics -
Additional info - please help if you can
2002-10-06 17:36:29 macrobotics [Reply | View]
To try to find the problem, I have run sendmail using the -bv option on local user names, both with and without the domain name or IP address (user, user@domain, user@[ip.ad.dr.ess]). All return with the response "deliverable: mailer local, user user" - indicating that things should be fine.
I have run from the terminal prompt on the server with a "-v -C./sendmail.cf user@domain" set of options, and the mail was properly delivered.
However, any use of a mail program, either on the local network or from the internet, addressed to user@domain or user@ipaddress, gets bounced with a message to the effect of "user@domain is not a valid recipient" and hangs around the server's queue.
Unfortunately, I can't receive mail from LISTSERV's as a result of this (although I can send mail to them!), so I am hoping to find help on this Web forum.
Any advice would be appreciated.
Kevin Coble
MacRobotics
-
OSX Jaguar - smrsh and wrapper
2002-10-03 11:26:43 anonymous2 [Reply | View]
On installing Mailman on Mac OSX 10.2(Jaguar), I'm stuck.
The error report via e-mail is:
----- The following addresses had permanent fatal errors -----
"|/Applications/mailman/mail/wrapper mailcmd ucet"
(reason: Service unavailable)
(expanded from: <ucet-request@xxxxxxx>)
----- Transcript of session follows -----
smrsh: wrapper not available for sendmail programs
554 5.0.0 Service unavailable
-------
In the README.SENDMAIL it says:
% cd /etc/smrsh
% ln -s /home/mailman/mail/wrapper wrapper
(I would do % ln -s /Applications/mailman/mail/wrapper wrapper )
I've looked everywhere I know how to find smrsh in the OSX file system, so I can add the symbolic link.
Does some wise person know where to find smrsh in OSX (Jaguar)?
Kathy
webb_k@suu.edu
-
local mail ends up in /var/mail/'username'
2002-10-03 07:41:13 tjj [Reply | View]
..and Mail.app cannot access this from the imap account. This was created with my localhost name as incoming server and smtp server. It appears to log on to it, but there's no mail. Any mail sent to a local alias ends up in /var/mail/'username'.
Outgoing mails don't get sent. mail.log reads:
Oct 3 16:20:42 Pismo imapd[588]: imaps SSL service init from 10.221.20.146
Oct 3 16:20:42 Pismo imapd[588]: Unable to load certificate from /imapd.pem, host=[10.221.20.146]
Oct 3 16:20:42 Pismo imapd[588]: SSL error status: error:02001002:system library:fopen:No such file or directory
Oct 3 16:20:42 Pismo imapd[588]: SSL error status: error:20074002:BIO routines:FILE_CTRL:system lib
Oct 3 16:20:42 Pismo imapd[588]: SSL error status: error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib
10.221.20.146 is the dynamic IP behind a corporate firewall
The imap server was installed according to the article.
Any ideas?
Thanks up front. -
Certificats trouble?
2002-10-08 07:39:47 tjj [Reply | View]
I get the following log when restarting sendmail:
Oct 8 15:48:03 Pismo sendmail[1667]: restarting /usr/sbin/sendmail due to signal
Oct 8 15:48:10 Pismo sendmail[1667]: gethostbyaddr(10.221.18.145) failed: 3
Oct 8 15:48:10 Pismo sendmail[1926]: starting daemon (8.12.2): SMTP+queueing@01:00:00
What's that last address?
Similarly, when running: telnet localhost 25, I get:
[Pismo:~] tjj% telnet localhost 25
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 pismo.local ESMTP Sendmail 8.12.2/8.12.2; Tue, 8 Oct 2002 16:23:09 +0200 (CEST)
Can send mail locally, also with mail.app, but cannot send externally, neither from terminal nor mail.app.
10.2.1 installed on-top-of 10.1.5 (both i.e.)
-
aliases
2002-10-02 07:38:27 anonymous2 [Reply | View]
Using the guidelines in this article, I have sendmail working, but when I rebuild the alias database I get the following message:
local host name (localhost) is not qualified; fix $j in config file
The alias.db file does get built, and it works, but I wonder what to fix to address this error.
-
Is this configuration good for OS X Server 10.2?
2002-09-29 08:55:45 anonymous2 [Reply | View]
Probably it is, but what should I be aware of in cofiguring Sendmail for OS X Server 10.2?
Thank you for the wonderful articles. They are very helpful to me.
Maigoofy
-
Help please ! Probably very simple
2002-09-28 08:33:58 propix99 [Reply | View]
Hello everyone,
Firts I would like to thank every contributor of this site. Numerous time I found the answer I was looking for in either MacDecCenter articles or Forums. Thanks to all of you !
I've configure Sendmail according to this article, and everything seems fine. Using the console, I am able to send email without any issue :
MAIL LOG :
Sep 28 10:57:49 propix sendmail[477]: gethostbyaddr(192.168.1.102) failed: 3
Sep 28 10:57:49 propix sendmail[477]: g8SEvnTN000477: from=propix, size=85, class=0, nrcpts=1, msgid=<200209281457.g8SEvnTN000477@propix.homeip.net>, relay=propix@localhost
Sep 28 10:57:51 propix sendmail[479]: g8SEvnTN000477: to=propix99@yahoo.com, ctladdr=prop (501/20), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=30059, relay=mx2.mail.yahoo.com. [64.157.4.82], dsn=2.0.0, stat=Sent (ok dirdel)
I am having some problem when PHP is using Sendmail . I use the following to test :
<?
$fd=popen("/usr/sbin/sendmail -t","w");
fputs($fd, "To: propix99@yahoo.com");
fputs($fd, "From: admin@propix.homeip.net");
fputs($fd, "Subject: Test Message From Propix");
fputs($fd, "X-Mailer: PHP4");
fputs($fd, "Testing.");
pclose($fd);
?>
and the email never reach it's destination. The mail log is as follow :
Sep 28 11:19:18 propix sendmail[483]: gethostbyaddr(192.168.1.102) failed: 3
Sep 28 11:19:18 propix sendmail[483]: g8SFJI4A000483: from=www, size=112, class=0, nrcpts=0, msgid=<200209281519.g8SFJI4A000483@propix.homeip.net>, relay=www@localhost
I believe the problem is from the relay ("relay=propix@localhost" , succesfull from the console vs "relay=www@localhost" not successfull from PHP)
I understand that the "www" is set in the apache configuration , but even changing it to an existing user does not do the trick.
Any suggestion would be greatly appreciated
Thanks !
-
SMTP_AUTH ... ?
2002-09-27 14:36:39 anonymous2 [Reply | View]
I saw a question regarding this, and there are 4 links to apple's TechInfo pages on the subject at: http://www.afp548.com/Articles/mail/ams-antirelay.html
However, I do have a question: Isn't there a way to disable SMTP relaying without having to specify every single IP address / host that can send to your users? I cannot see it being too feasible for someone to have to call you to add their email host to your sendmail configuration each time someone wants to send you an email.
-
procmail configuration
2002-09-27 14:27:30 anonymous2 [Reply | View]
(I hope this gets put into the right thread, as responding to a post doesn't seem obvious in this forum!)
Thanks for the response patrick_s, but NO, it doesn't seem to help my situation. Mail to my local domain is being put into the mail queue directory, and the sendmail log has status of "queued" for the mail that was received.
I'll check my aliases file to make sure my email addresses are pointing to my user accounts appropriately though.
Isn't the sendmail.cf file created by m4 (using the source outlined in these articles) specifying an Mlocal directive with the procmail program? If so, is procmail defaulting to just throwing mail into the users' home directory, rather then the Imap subdirectory that these articles are recommending?
Kevin Coble
MacRobotics -
procmail configuration - solved
2002-09-27 17:10:27 macrobotics [Reply | View]
OK, the problem appears to be with the lack of an aliases.db file. Even though an alias was not needed, as I was mailing to the direct account name, the fact that I had not set up an alias file and compiled it into the aliases.db file (as referenced by the sendmail.cf file), caused all local mail to be queued.
Outgoing mail still went fine though.
As a side question then, where does sendmail (or procmail, if it is really being used as the local delivery agent) actually store the local mail files for a particular user? Can this be configured without a .procmailrc file? And which is better for a small system, a .procmailrc in each account, or a global one?
Thanks up front, for any advice;
Kevin Coble
MacRobotics -
procmail configuration
2002-09-27 15:13:21 patrick_s [Reply | View]
Anon,
I guess I don't know the answer to your question. All I know is that I followed the 'Setting up a Site Server' and the 'Configuring Sendmail on Jaguar' exactly. Then I added the other accounts to my system and configured Mail.app to use the local mail server.
Stupid Question: Did you download and build IMAPd as described in 'Setting up a Site Server'?
Sorry I couldn't help. -
procmail configuration
2002-09-27 16:39:44 macrobotics [Reply | View]
Yes, I have the IMAPd installed as specified. mail.app doesn't complain about the connection, it just doesn't find any mail the Imap directory under my user account. All local mail (including a nice buildup of "Unable to send for 4 hours" messages) is in the /var/spool/mqueue directory, with a "To" line exactly equal to my short login name.
-
procmail configuration
2002-09-27 11:28:15 anonymous2 [Reply | View]
Thanks for a series of great articles!
Using them I have managed to set up my server for Web and mail access and intend to let my main ISP go once I get a router issue resolved (replace with Rant about DLink tech support here).
My remaining issue is with local mail delivery to multiple accounts (mine, my wifes, etc.). The sendmail.cf file uses the procmail program for local delivery, but Mac OS X doesn't seem to come with a .procmailrc file anywhere. Can someone point me to a good starting point for configuring procmail to deliver to multiple accounts on the server, such that it can be accessed using IMAP from other local machines on my home network?
Thanks in advance.
Kevin Coble
MacRobotics -
procmail configuration
2002-09-27 12:24:40 patrick_s [Reply | View]
It's quite simple really, and as far as I know doesn't require Procmail configuration. Here's what I did.
1. Create user accounts for everyone you want to have access to mail on the system that is running Sendmail/IMAP.
2. Configure Mail.app for each user on which ever systems they use. Set the incomming mail server to the system you have sendmail/IMAP running on. NOTE: Unless you edit each computer's NetInfo Machines Directory and Lookup order, just use the IP address of the computer.
3. That's it. This worked for me with no problems, other than the one I posted for this article.
4. Make sure to follow the steps for 'Allowing Relaying from Certain Hosts' in this article so these other users can send mail.
Hope this helps.
-
When will you guys get it?
2002-09-26 20:32:23 anonymous2 [Reply | View]
There are a lot of us Mac users that are designer types not ITs. All we want to to is have MySQL, PHP, Apache and Sendmail working locally to develop web sites. I got the first three working, but I don't even know how to configure Apache to load index.php file by default, or make a alias to the localhost. When testing a mail script Apache is just spinning it's wheels while PHP is trying to send the mail somewhere. Most Mac users are not going to host a real site on their desktops so why not give us an article that spells out what we really need step by step? I would even by a book if I knew of one, that kept it simple and concentrated on local hosting. -
When will you guys get it?
2002-09-26 23:39:00 patrick_s [Reply | View]
Brother... I've been there. The articles here are great, but they do assume (with all due respect) a little bit of UNIX geerkery. Check out their starting articles such as learning the Mac OS X terminal. * As for your 2 questions:
Load index.php by default:
Launch Terminal:
1. Edit the httpd.conf file by typing: sudo pico /etc/httpd/httpd.conf (This line means that you want to edit (pico is an editor) the file 'httpd.conf' (located in /etc/httpd/) and you want to do it as a 'superuser' (hence the sudo command).
2. Enter your admin password. (this is necessary because of the 'sudo' command)
3. After the file is opened (in pico) hold down the Control key and type w. -- This command will allow you to enter some text to search for.
4. The cursor will be in a white bar at the bottom of the terminal, labeled 'Search:'. Type index.html, and hit the return key.
5. The cursor will move to a line that reads "DirectoryIndex index.html". Move your cursor to the end of this line and type 'index.php'. Make sure there is a space between 'index.html' and 'index.php'
6. Save the httpd.conf file by holding down the Control key and typing o. Hit the enter key to confirm the save.
7. Exit pico by holding down the Control key and typing x.
8. Restart Apache by typing: sudo apachectl graceful, enter your password if/when prompted.
The alias to the local host is a little bit more involved. If the behavior you are looking for is: Typing your domain name (www.mysite.com) into your web browser displays your local web server, then post your email address as a response and I'll send you a document that will help you out.
* I take no responsibility if you screw up your system using the steps I described above.
-
sendmail for PHP
2002-09-25 21:12:22 griffitts [Reply | View]
All I really need is to be able to send an e-mail outside my router via a PHP page. I don't need or want to receive mail via my mail server. I don't have a domain name. I've tried following the steps as best I could but my mail.log keeps saying: Sep 25 23:06:39 G4 sendmail[997]: gethostbyaddr(192.168.1.2) failed: 3
Sep 25 23:06:39 G4 sendmail[1013]: starting daemon (8.12.2): SMTP+queueing@01:00:00
Sep 25 23:06:53 G4 sendmail[1015]: gethostbyaddr(192.168.1.2) failed: 3
Sep 25 23:06:53 G4 sendmail[1015]: g8Q46rcX001015: from=www, size=176, class=0, nrcpts=2, msgid=<200209260406.g8Q46rcX001015@g4.earthlink.net>, relay=localhost
Sep 25 23:08:08 G4 sendmail[1017]: g8Q46rcX001015: to=my_valid_address@mac.com, ctladdr=www (70/70), delay=00:01:15, xdelay=00:01:15, mailer=esmtp, pri=60097, relay=smtp-mx.mac.com. [204.179.120.49], dsn=4.0.0, stat=Deferred: Operation timed out with smtp-mx.mac.com.
-
Configuring PHP on Jaguar with mac.com
2002-10-31 19:57:14 edwardd20 [Reply | View]
Configuring sendmail on Jaguar with mac.com (smtp.mac.com)
For those who wish to pursue sendmail on Mac OS X 10.2 (Jaguar) (do Europeans refer to it as 10,2?), here is what I did:
I finally got sendmail working but not with PHP which was my real goal. I’m not sure all of this was necessary but it is what I had at the end.
I don’t have a domain registered at my home. I was simply trying to use PHP for outgoing mail.
Ignore all of the angle brackets and simply put in the proper values.
I ended up working the the following command in the terminal:
sendmail -v -f<from email address@mac.com> <to email address@xxx.com> < ~<homedir>/message
This sent a message from <from email address@mac.com> to <to email address@xxx.com>.
In my /etc/mail/authinfo file:
authinfo:smtp.mac.com “U:<userid>” “P=<password>” “R:smtp.mac.com” “M:PLAIN LOGIN”
In my /etc/mail/access file:
192.168.0 RELAY
192.168.1 RELAY
dsl-1-1-1-1.networkprovider.net RELAY
I didn’t end up using the alias file but I created one anyway that was empty.
I added to the ./update file mentioned in the article to add the following to the end:
if [ /etc/mail/authinfo -nt /etc/mail/authinfo.db ]
then
echo Updating authinfo
makemap hash /etc/mail/authinfo < /etc/mail/authinfo
fi
For those of you, like me, who are prone to making typo’s, watch for the word “then” in the if/fi structure. I left it out and it took me 15 minutes to figure it out.
In the /etc/mail/config.mc file, there are 2 different single quote characters. The one that starts parameters is the wierd one to the left of the one (1) key on my keyboard. The normal single quote key is what ends parameters. Also, you can’t use the # symbol to mark a line as a comment. The M4 processor ignores it and processes the line anyway. In my final config.mc file, I ended up removing the `LUSER_RELAY’ line. My `confDOMAIN_NAME’ had the value of `smtp.mac.com’. No SMART_HOST was necessary for me (thank you WideOpenWest). I added one other line before the mailer(SMTP) line. FEATURE(`authinfo’)dnl
With all of these changes made, I got sendmail working with smtp.mac.com but sadly PHP’s mail() function still didn’t work even after I create my /usr/local/lib/php.ini file as:
[mail function]
sendmail_path = /usr/sbin/sendmail
sendmail_from = <email address@mac.com>
SMTP = smtp.mac.com
PHP would always die with a gethostbyaddr(192.168.0.2) failed: 3 messge. I never did figure out what that really means or how to fix it. Once again, visit Visit http://www.phpguru.org/smtp.html for an alternative to PHP’s mail() function that actually works with Jaguar and smtp.mac.com.
Ed
EdwardD20 at mac dot com -
sendmail for PHP
2002-10-27 17:55:26 edwardd20 [Reply | View]
It's to bad a month has gone by and no answer to this question. It is the same (or pretty close) to the issues I am having.
I don't have a domain, or want one at this time. I would simply like to be able to use the PHP mail() function.
I'm afraid by no answer this can't be done.
I'm getting the following in my /var/log/mail.log file:
Oct 27 23:06:53 G4 sendmail[531]: gethostbyaddr(192.168.0.116) failed: 3
Oct 27 23:06:53 G4 sendmail[531]: g8Q46rcX001015: from=www, size=113, class=0, nrcpts=0, msgid=<2002102772325.g8Q46rcX001015@mulan.nodomain.com>, relay=localhost
I do know 192.168.0.116 is my IP address behind my router. "nodomain.com" is the made up domain name I used in my config.mc file. I'm not getting the third message from the original post. Does this mean I'm not getting as far as griffitts or an I gett farther?
How does one go about actually figuring out what these messages mean? Is it because I don't have a domain? Is there a problem in my sendmail configuration? Is the problem in my very simply PHP mail() reqest.
I looked at the sendmail.org pages and I didn't find a documentation section. (That doesn't mean it isn't there, I just didn't find it.)
Thanks,
Ed -
sendmail for PHP
2002-10-31 19:20:30 edwardd20 [Reply | View]
I've spent the past 2-3 weeks trying to resolve this issue without any real luck. I'm partially giving up but... I have found a replacement solution. Visit http://www.phpguru.org/smtp.html and there is a PHP CLASS file that writes directly to a SMTP mail server. This script works fine with smtp.mac.com. I'm going to recommend it to anybody who needs to use PHP mail (not the mail() function) with smtp.mac.com. Like I said, it works great.
Back to my partially giving up. I'll keep my eye open for a real solution to using PHP's mail() function with sendmail built into OS X. Perhaps it will be in OS X 10.3.
-
Note on Squirrelmail vs. Twiggi + other stuff
2002-09-25 04:43:21 anonymous2 [Reply | View]
So. I wrote earlier about configuring sendmail imapd and Apache through these articles. I also managed to get SSL working in Apache on my own (though Internet Explorer doesn't work with it, Chimera, Mozilla, Netscape, OmniWeb does).
Anyway, as I said you need imapd to be configured without ssl, which can be accomplished through either compiling a new one with BOTH ssl and no ssl. I chose to create two imapds however. Mostly for simplicity, and avoiding problems. That way you can use the standard instructions in the oreilly article on imapd with ssl, and use the standard config coming with imapd when compiling without ssl.
I now got my own domainname an industrialstrength Apache serving virtual domains so that webmail.mydomain.com takes me directly to the webmail login page and www.mydomain.com shows the standard webpage. All on the same machine. YEEEHAA!
Mail is sent to john@mydomain.com
(mydomain.com is NOT my domain, just used it in this note for security reasons)
A note on Squirrelmail was what I was supposed to do though.
Squirrelmail is very easy to configure and doesn't require a database backend such as MySQL. Squirrelmail is a bit ugly though in my opinion. So I went looking for another webmail-system, and guess what? I found something much better. It does however use MySQL as a backend and got LOADS of features I will probably not use such as Calendars, Todo lists etc. It's still much nicer.
It's name is Twiggi. You can get it here: http://twiggi.sourceforge.net
First I'd advice you to install MySQL though. It's really not that difficult if you go here and follow the instructions: http://www.entropy.ch/software/macosx/mysql/
Also you must have php working in Apache. There's an article on that here on oreilly.
You'll probably run into some trouble, I know I did. Most of the time though, just take it easy and have patience. You'll get it running. If all else fails - delete everything you installed and start over.
Good luck!
/John
-
No Domain
2002-09-24 13:58:23 anonymous2 [Reply | View]
I have a block of ip numbers that I use at
home for my network.
There is currently no domain name associated with
these fixed IPs.
How should I set-up sendmail to work correctly?
Can I enter a fixed IP number instead of a domain
for this configuration?
define(`confDOMAIN_NAME', `$w.domain.com')
It would be for outgoing email since
I read email directly from a
different Web Hosting account.
Thanks for a great article,
-Rob
-
Domain name external to your mail server.
2002-09-24 08:14:50 anonymous2 [Reply | View]
A possible followup for this article would be to explain how to deal with a distributed configuration.
* You have a machine on Internet not necessary a OS X box, let say a FreedBSD with sendmail and managing your mail under the domain "example.org". The machine is "yeah.example.org"
* You have your OS X box on internet with an ISP (example.net). So the ISP give you a temp.ip.add.example.net.
1st question: How can you configure your local sendmail to deal with the mail you send and being identify as it if it was example.org which sends it.
2nd question: How to configure the pop, imap ? to send the mail of one of the account to the machine "yeah.example.org" to your local machine.
3rd question: You had another machine on your local network a laptop. And you want that the mails between the external server, the OS X box, and the OS X laptop are all synchronised. So you can use them alltogether (It's not a trivial Problem).
-
Domain name external to your mail server.
2002-09-24 11:47:02 James Duncan Davidson |
[Reply | View]
Interesting thoughts for sure.
1st answer: See the MASQUERADE_AS directive.
2nd answer: I wouldn't use POP or IMAP for that purpose, I'd use either an alias or set up a procmail rule that fowards the mail for the user to another machine.
3rd answer: No, it's not a trivial problem. In fact, the only solution that I've ever found is to pick a machine that is the authoritative machine for my mail and use IMAP to read the mail from all my other machines. Trying to synchronize mail spools across machines, while possible, isn't something that I'd relish doing.
-
Outgoing mail not... going.
2002-09-23 23:44:31 anonymous2 [Reply | View]
This article was the best! I'm an idiot and now I've got my very own mail server. YEHAW! Anyway, to my question:
I'm using my Airport Base Station as a router to handle internet access for my Macs at home. The other Macs are wired and log into my G4 to get mail. I have no problems sending mail to any local account, however, when I try to send email outside (using my system as the outgoing mail server) the message never gets delivered. I've included the 'Behind a firewall' and 'Lame ISP' lines in the config.mc file, but no go.
Any clues? -
Outgoing mail not... going.
2002-09-24 11:50:53 James Duncan Davidson |
[Reply | View]
Where does the message go? Does it just stay in the queue on your mailserver.
Check the /var/log/mail.log file for clues.
Also, check to see that you can connect with your SMART_HOST by telnetting to port 25 from your mail server. -
Outgoing mail not... going.
2002-09-24 23:46:08 patrick_s [Reply | View]
Thanks for your help. One thing I should mention is that when I use mail.mindspring.com as my outgoing mail server in Mail.app, all works fine (EarthLink is my ISP).
I get an appropriate response using telnet as described in the 'Setting up a Site Server' article. This is with the SMART_HOST definition.
I checked out the log file and here's what I get (usernames and system names removed to protect the innocent): I am sending mail using localhost as the outgoing mailserver:
Sep 24 23:25:53 [machine_name] sendmail[1647]: g8P6PnQD001647: from=<user@domain.dyndns.com>, size=629, class=0, nrcpts=1, msgid=<A1ABE80A-D04F-11D6-B834-000A27B39884@domain.dyndns.com>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Sep 24 23:27:08 [machine_name] sendmail[1649]: g8P6PnQD001647: to=<user_name@mac.com>, ctladdr=<user@domain.dyndns.com> (501/20), delay=00:01:16, xdelay=00:01:15, mailer=esmtp, pri=30387, relay=smtp-mx.mac.com. [204.179.120.49], dsn=4.0.0, stat=Deferred: Operation timed out with smtp-mx.mac.com.
-
Re: submit.cf and previous failure (2002-09-19 14:30:03 anonymous)
2002-09-23 07:03:42 anonymous2 [Reply | View]
Adding the define(`confDONT_BLAME_SENDMAIL', `GroupWritableDirPathSafe') line to /etc/mail/submit.mc and processing it with m4 fixed my problems with getting sendmail to launch.
added the following lines to the sendmail-update script:
if [ /etc/mail/submit.mc -nt /etc/mail/submit.cf ]
then
echo Regenerating submit.cf
m4 /usr/share/sendmail/conf/m4/cf.m4 /etc/mail/submit.mc > \
/tmp/submit.cf
mv /etc/mail/submit.cf /etc/mail/submit.cf.old
mv /tmp/submit.cf /etc/mail/submit.cf
fi
-
submit.cf
2002-09-22 22:46:04 johnalbinwilkins [Reply | View]
I notice that one of the two sendmail processes is using the /etc/mail/submit.cf as its configuration file. But this file doesn't have the DontBlameSendmail option enabled.
Wouldn't it be a good idea to add the define(`confDONT_BLAME_SENDMAIL', `GroupWritableDirPathSafe') option to the /usr/share/sendmail/conf/cf/submit.mc file and rebuild /etc/mail/submit.cf using m4?
Please advise.
BTW, fantastic article and I'm looking forward to reading about SMTP_AUTH. Any chance of you talking about configuring a mail hub to receive mail for multiple domain names? -
submit.cf
2002-09-24 11:54:26 James Duncan Davidson |
[Reply | View]
I haven't found it necessary to change my submit.cf file at all. My machine regularly sends me email from various command line programs (usually cron) and I haven't needed to tweak it.
I'm glad that you enjoyed the article. I think we'll have more to come based on all the feedback.
-
Thanks alot!
2002-09-22 17:55:36 anonymous2 [Reply | View]
I've had just a little trouble getting Apache, Sendmail, Imap running on my machine. Without these great articles I would have had ALOT of trouble.
Now I also configured SSL for Apache and installed Squirrelmail (www.squirrelmail.org), which is webbased email. Everything is running great on my homebox. If you want to install squirrelmail you need an imapd that supports unencrypted transport(doesnt matter much if squirrelmail is run on the same machine as imapd and sendmail).
To avoid problems though, I compiled one imapd with SSL only, and another which i renamed imapd_nossl. In inetd I just call the different daemons from the different ports - 143 imapd_nossl then 993(or whatever is it) imapd ssl only version.
Thanks!
/John -
Thanks alot!
2002-09-24 11:56:05 James Duncan Davidson |
[Reply | View]
You're welcome. :)
Interesting solution with squirellmail. Getting more information out about web mail readers is definitly something that I want to take a look at.
-
Where to start?
2002-09-21 07:16:33 anonymous2 [Reply | View]
OK -
I have tried many of these articles and have had little to no success with any of them.
Yes I know nothing about most of this. I get lost. What does "vi" do? What is "emacs"?
I am stuck in the middle of Iowa with every one of my frinds thinking that I am an idiot for using the mac. I want to learn this stuff - I want to make form mail work on my machine. I want to understand this stuff!!!
Where do I start? Can I take a class - buy a book? Can someone come over to my house and show me how to use this stuff?
Please point me to a nice beginning point. I really REALLY want to learn this AND understand what it is I am doing.
thanks. . . -
Where to start?
2002-09-24 12:01:02 James Duncan Davidson |
[Reply | View]
I sympathize, we all start out somewhere. There are lots of books and online materials to help you out. Some good starting books:
Learning Unix for Mac OS X
Unix in a Nutshell
-
sendmail setup described fails for me
2002-09-19 14:30:03 anonymous2 [Reply | View]
I followed the directions here for setting up sendmail by editing the config files and running the sendmail update script. For some reason the changes don't appear to take effect. I made the property entry into Netinfo as suggested as well.
Even running just the following recommended command results in the error regarding a world-writeable directory.
/usr/sbin/sendmail \ -OdontBlameSendmail=GroupWritableDirPathSafe \
-bd -q1h
451 4.0.0 /etc/mail/sendmail.cf: line 94: fileclass: cannot open '/etc/mail/local-host-names': World writable directory
What gives?
Has anyone else found this problem and perhaps a work-around? Any suggestions for things to check?
My config is a standard 10.2 install directly from Apple.
Thanks, Alex
-
sendmail setup described fails for me
2003-09-30 09:04:37 anonymous2 [Reply | View]
hey, when i send a mail , everything seems to work but i get EOT before gettting back the prompt. i check if i recieved the test on my other e-mail account but i did not get any!
do you have an idea what is going on! -
sendmail setup described fails for me
2003-05-30 10:30:19 anonymous2 [Reply | View]
Hey Alex,
I get the same crash and error, but when I try to empty the trash in 10.2.6. Did you ever find out how to fix this?
Thanks,
AF -
sendmail setup described fails for me
2002-09-24 12:07:08 James Duncan Davidson |
[Reply | View]
Your /usr/sbin/sendmail command there has the backslash character (\) twice. Are you executing the command all on one line with the backslash characters?
Without the slashes, the command works just fine for me on a stock installed system (just reinstalled Jaguar on one of my test machines last night).
Are there any clues in /var/log/mail.log?
-
Full system crash when receiving mail via IMAP
2002-09-19 09:16:14 gavintiplady [Reply | View]
First let me say how great these articles are. I'm a long (long!) Mac user and have been a non-sysadminy-type Unix user for some years, and you guys are really helping me understand how to get more out of Mac OS X.
I followed both articles (setting up site server, and configuring sendmail) very carefully and for a week or more have been sending mail directly from sendmail on my localhost (i.e. instead of via mail account at the ISP). Everything has been stable so far so I recently decided to take the plunge and fully mail-host my domain name.
I have a domain already and will be using DynDNS.org (-Custom- DNS) to perform naming services, and have already been able to test that I will be able to receive mail when the cutover happens shortly, first by sending direct to my current IP address, i.e. user@x.x.x.x, and also by sending to a (different) -Dynamic- DNS which already points to my machine (this will make sense to people familiar with DynDNS). Both Mail.app and Entourage work fine with the IMAP server.
The problem is that my Mac can quite reliably be made to crash, apparently when it physically receives email messages. By crash I mean a greyed out page (that may be the new way kernel panics are displayed in Jaguar - not sure) with the following message in English, French, German and Japanese: "You need to restart your computer. Hold down the power button for several seconds or press the Restart button. FF:FF:FF:FF:FF:FF - those are hex digits not my reaction :-)
The crash is apparently triggered when the sendmail/IMAP software receives mail behind the scenes. It's not related to Mail.app or Entourage getting mail from the local IMAP server, because it can happen when either, both, or NEITHER, are running. Once it even happened the very moment I logged in to my userid - the only userid on the machine as yet with an mbox - after a restart
My set up:
- NETGEAR router, with ports 80, 25 (and a couple of others not relevant) open and forwarded to Mac.
- Airport serving Mac.
- Mac Powerbook G3/400 with 1Gb RAM running 10.2 with sendmail and IMAP operational
- WinTel box on local network running WinXP
What I've tried:
Send series of emails from hotmail web page to achieve "outside in" message sending
Configure WinTel to use Mac's mail server, send series of mails from it internally to mac (only tried this AFTER I noticed the problem - it cannot be the cause)
What I see:
When I "know" emails are arriving, from either of the above two sources, there seems about a 25% chance per email (i.e. VERY HIGH!) the crash will occur. Irrelevant whether mail clients are actually accessing the IMAP server or not.
Any ideas would be very welcome.
(Please forgive the long post, thought it might be a better idea than just saying "my mac crashes.....") -
Fixed now
2002-09-21 22:32:46 gavintiplady [Reply | View]
Tried scanning for disk problems, none found. Installed clean Jaguar on another disk, set up sendmail, worked OK.
Contemplated migrating established environment from main partitions to new, shuddered at disruption and work involved..
Had one further thought, turned off Norton Antivirus and Filesaver, rebooted, tried again, and now working fine. -
Fixed now
2002-09-24 12:09:30 James Duncan Davidson |
[Reply | View]
Interesting. I'm glad that you followed up with the solution as I couldn't see anything that would cause the symptoms you were reporting.
Yep, the new grey screen is how kernel panics are reported.
Interesting that Norton's stuff causes such a problem. That's really scary and make me question what Norton is doing to the system.
-
Apple Laptop Keyboards Unsuitable for Unix Users
2002-09-18 02:05:11 anonymous2 [Reply | View]
Apple laptops are effectively unusable for unix users.
I am a long-time Unix user. That means I need to have the Ctrl key to the left of the A key. This is a genuine need, not merely a want; it is based upon ergonomics. The Ctrl key is heavily used in unix, and it must be easily accessable. It cannot be off in the lower left corner of the keyboard where it is difficult to get at, and where it distorts the position of your left hand such that you can't easily type other keys while holding the Ctrl key down.
Apple desktop keyboards are now all USB. They are all OK. The CapsLock key can be re-mapped into a Ctrl key.
Unfortunately, even in this modern age, all Apple laptops have built-in ADB keyboards. The ADB keyboard is broken-by-design. It is, in general, not possible to remap the CapsLock key into a Ctrl key.
There are some exceptions, but they are horrible kludges. They are
horrible kludges because the original design of the ADB keyboard was a horrible kludge. The correct solution would be for Apple to re-design their laptop motherboards to use built-in USB keyboards. This hasn't happened yet. If you run Linux, use Debian's solution. For Mac OS X users, uControl works. There are no solutions (that I know of) for either NetBSD or OpenBSD. Please note once again that the "solutions" above are in fact kludges, because of the original bad design of the ADB keyboard.
Apple is (currently) ignoring Unix users! This is not merely speculation on my part. In an on-going email exchange I am having with an Apple employee (whom I won't name) in their marketing department, the Apple marketing person directly stated to me that Apple was catering to their historic Mac customers, and is purposely ignoring the Unix market. He also claimed that Apple would soon start paying more attention to the Unix market. I won't hold my breath. Apple has been ignoring Unix users for more than 10 years. I expect that trend to continue. (Also note that my Apple contact indicated that Macs would never ship with a 3-button mouse, even though Apple intended to port almost all X-window software and deliver it either on a CD/DVD or installed directly on each Mac's hard drive. How Unix friendly is a 1-button mouse with X programs that often require 3 buttons?)
Apple has now lost two opportunities to sell me hardware. I really wanted an Apple laptop for their superior battery life, and for the PowerPC with Altivec CPU. (The Altivec is vastly superior to the x86 line for DSP.) Because I can't live with the broken-by-design built-in ADB keyboard in all Apple laptops, Sony and IBM sold me laptops instead. If Apple fixes this problem, they will sell me a PowerBook next year; if they don't, I'll still be running OpenBSD on x86 hardware, and wishing I could use a Mac.
-
Domain of sender address XXXXXXX@computer.local does not exist
2002-09-17 21:54:06 nsowens [Reply | View]
My root's .forward file sends mail to my username account and my .mac account. This is the error I've been getting since upgrading to Jaguar and setting up sendmail again. Does it have to do with the relaying? with the $w.local??? I'd really appreciate any help! (Let's pretend my machine is called "computer"):
>
From root Tue Sep 17 23:42:59 2002
Date: Tue, 17 Sep 2002 23:42:59 -0500 (CDT)
From: Mail Delivery Subsystem <MAILER-DAEMON>
To: XXXXXXX
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="g8I4gxEw000892.1032324179/computer.local"
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)
This is a MIME-encapsulated message
--g8I4gxEw000892.1032324179/computer.local
The original message was received at Tue, 17 Sep 2002 23:42:56 -0500 (CDT)
from XXXXXXX@localhost
----- The following addresses had permanent fatal errors -----
XXXXXXX@mac.com
(reason: 553 5.1.8 <XXXXXXX@computer.local>... Domain of sender address XXXXXXX@computer.local does not exist)
(expanded from: root)
----- Transcript of session follows -----
... while talking to smtp-mx.mac.com.:
>>> MAIL From:<XXXXXXX@computer.local> SIZE=33
<<< 553 5.1.8 <XXXXXXX@computer.local>... Domain of sender address XXXXXXX@computer.local does not exist
501 5.6.0 Data format error
--g8I4gxEw000892.1032324179/computer.local
Content-Type: message/delivery-status
Reporting-MTA: dns; computer.local
Arrival-Date: Tue, 17 Sep 2002 23:42:56 -0500 (CDT)
Final-Recipient: RFC822; root@computer.local
X-Actual-Recipient: RFC822; XXXXXXX@mac.com
Action: failed
Status: 5.1.8
Diagnostic-Code: SMTP; 553 5.1.8 <XXXXXXX@computer.local>... Domain of sender address XXXXXXX@computer.local does not exist
Last-Attempt-Date: Tue, 17 Sep 2002 23:42:59 -0500 (CDT)
--g8I4gxEw000892.1032324179/computer.local
Content-Type: message/rfc822
Return-Path: <XXXXXXX>
Received: (from XXXXXXX@localhost)
by computer.local (8.12.2/8.12.2) id g8I4guEx000890
for root; Tue, 17 Sep 2002 23:42:56 -0500 (CDT)
Date: Tue, 17 Sep 2002 23:42:56 -0500 (CDT)
From: "Xxxxxxx X. Xxxxx" <XXXXXXX>
Message-Id: <200209180442.g8I4guEx000890@computer.local>
To: root
Subject: test 9
test 9
--g8I4gxEw000892.1032324179/computer.local-- -
Domain of sender address XXXXXXX@computer.local does not exist
2002-09-24 12:13:32 James Duncan Davidson |
[Reply | View]
Yep, the problem is that other mail servers don't like the Rendevous .local names--and rightly so. This does make for a PITA for those of us using Sendmail.
Try setting the property
define(`confDOMAIN_NAME', `$w.domain.com')
to your domain name
-
Sendmail error on local_host_names
2002-09-17 18:38:23 bilver [Reply | View]
There is another alternative that I used to install Sendmail
I install OS X Jaguar Thursday. The only OS X experience I had before was about 1 hour on an OS X developer beta with a late 1999 kernel.
I spent 2 days audio editing on a Mac for friend two years ago, and I spent about 1 hour on a Mac the second week they were out in 1984 so I'm a bit new at Macs.
However I've been banging on Unix and sendmail for awhile.
In the sendmail.cf the Fw file point to the local user file.
I commented that out and put the two domains I will accept mail for right after 'localhost' on the Cw line.
I used to have to do this on old Sendmail installs on some SGIs years ago, and it works.
I hesitated to change directory permission until I get a few more hours under my belt with OS X to understand how it differs from all previous Unixen I've used.
This is the first time it's looked enough like my favorite OS of all time, NeXTStep to make me a believer. Really nice.
Bill
-
Sendmail error on local_host_names
2002-09-17 18:34:29 anonymous2 [Reply | View]
There is another alternative that I used to install Sendmail
I install OS X Jaguar Thursday. The only OS X experience I had before was about 1 hour on an OS X developer beta with a late 1999 kernel.
I spent 2 days audio editing on a Mac for friend two years ago, and I spent about 1 hour on a Mac the second week they were out in 1984 so I'm a bit new at Macs.
However I've been banging on Unix and sendmail for awhile.
In the sendmail.cf the Fw file point to the local user file.
I commented that out and put the two domains I will accept mail for right after 'localhost' on the Cw line.
I used to have to do this on old Sendmail installs on some SGIs years ago, and it works.
I hesitated to change directory permission until I get a few more hours under my belt with OS X to understand how it differs from all previous Unixen I've used.
This is the first time it's looked enough like my favorite OS of all time, NeXTStep to make me a believer. Really nice.
Bill
-
m4: ../m4/cfhead.m4: No such file or directory
2002-09-17 14:45:01 nlessa [Reply | View]
I get this message error also when running the script.
I am wondering if anybody solved this issue.
Nilton
-
m4: ../m4/cfhead.m4: No such file or directory
2002-09-17 08:44:47 kwidholm [Reply | View]
I run the update script and get the following output:
Regenerating sendmail.cf
m4: ../m4/cfhead.m4: No such file or directory
I look in "/usr/share/sendmail/conf/m4" and there certainly is file "cfhead.m4" in there. Any ideas?
KLKTRK -
m4: ../m4/cfhead.m4: No such file or directory
2002-09-24 12:18:40 James Duncan Davidson |
[Reply | View]
I haven't seen that particular error message. Are you on a clean install of OS X, or one that's been upgraded a few times? (Just trying to figure out where things might be botched).
-
Fixed the can't receive problem
2002-09-17 07:07:17 anonymous2 [Reply | View]
Well, I figured out why I'd stopped receiving email -- I'd managed to turn on the firewall. Duh.
Now if I could just get imap to work, but that's for another day.
-
Can't receive mail?
2002-09-16 12:07:08 anonymous2 [Reply | View]
OK, I'm frustrated. I ran through the steps on how to set up a Jaguar server, and Senmail worked fine. I could send mail to anyone on the Internet, and receive mail from the Internet. I tested this by sending myself email from my various "outside" accounts. Then I tried setting up imapd (which just plain didn't work with ssl -- I have no idea what I did wrong!) and now I can send mail with sendmail, but can't recieve mail. I am too much of a UNIX newbie to know where to begin troubleshooting, but in trying to get imapd to work, I played around a bit with the settings in Netinfo Manager for services (added them for pop2 and pop3 and imap), and also the hostconfig and inetd files.
This is just driving me crazy.
Any help or suggestions would be greatly appreciated. -
Working via email
2002-09-16 19:57:51 James Duncan Davidson |
[Reply | View]
The poster and I are working this via email. If there are any issues that need to get reported here, I'll do so.
-
re: m4 at issue (maybe)
2002-09-16 04:59:38 anonymous2 [Reply | View]
thanks for replying duncun. Everything is running happily now thanks to the tip from another user "ln -s /usr/bin/gm4 /usr/bin/m4" Just wanted to let you know that I definetely installed the bsd extra's as described in your first article on setting up a server. I even did a clean install, installed the dev tools with bsd, but still no m4 if i tried a m4 command... anyway, thank again -
re: m4 at issue (maybe)
2002-09-16 20:01:36 James Duncan Davidson |
[Reply | View]
Hrm. Ok. I wonder what might be going on.
In any case, if I were you, I'd just edit the /etc/mail/update script to use gm4 instead of m4. Easier. :) But as long as you are up and running.
-
RE: errors
2002-09-15 18:04:21 James Duncan Davidson |
[Reply | View]
Hrm. You can always see how m4 is compiled under Darwin to see how to get it to work, but really, there's no need to try to jury rig it when you can just install the dev tools and be done with it. You'll need GCC at other times (probably) and the only reason I can think of not to do it is disk space.
-
m4 is at issue (maybe?)
2002-09-15 17:57:07 James Duncan Davidson |
[Reply | View]
All I did to my machine is covered in the previous article: Setting up a Site Server with Jaguar
Basically, I installed Jaguar, then installed the Developer Tools. Make sure that when you install the dev tools that you install the BSD development tools/headers. You have to click on the Customize tab during the Developer Tool installation to get them.
You shouldn't need to do anything else to have a working m4.
-
Ahh, this
2002-09-15 17:51:59 James Duncan Davidson |
[Reply | View]
Sounds like a file system permissions problem but you haven't given enough information to tell what could be the problem.
-
Ahh, this
2002-09-15 02:17:45 niftbean [Reply | View]
What does " collect: Cannot write ./dfg8F9D9LX000462 (bfcommit, uid=0, gid=20): Permission denied "
HELP, sendmail will not work for me. I am running jaguar.
-chris -
Ahh, this
2002-09-15 17:51:46 James Duncan Davidson |
[Reply | View]
Sounds like a file system permissions problem but you haven't given enough information to tell what could be the problem.
-
m4 is gm4, trouble receiving mail
2002-09-14 06:42:23 anonymous2 [Reply | View]
You can make an alias like this "ln -s /usr/bin/gm4 /usr/bin/m4". Or make it with root privs "sudo ln -s /usr/bin/gm4 /usr/bin/m4".
I can't receive mail with this config... it says (note, I've changed the orig addresses, but username is the correct shortname etc):
The original message was received at Sat, 14 Sep 2002 06:30:41 -0700 (PDT)
from smtp-relay02-en1 [10.13.10.225]
----- The following addresses had permanent fatal errors -----
<john@myhost.blaha.com>
(reason: 550 5.7.1 <john@myhost.blaha.com>... Relaying denied)
----- Transcript of session follows -----
... while talking to myhost.blaha.com.:
DATA
<<< 550 5.7.1 <john@myhost.blaha.com>... Relaying denied
550 5.1.1 <john@myhost.blaha.com>... User unknown
<<< 503 5.0.0 Need RCPT (recipient)
Reporting-MTA: dns; smtpout.mac.com
Received-From-MTA: DNS; smtp-relay02-en1
Arrival-Date: Sat, 14 Sep 2002 06:30:41 -0700 (PDT)
Final-Recipient: RFC822; john@myhost.blaha.com
Action: failed
Status: 5.7.1
Remote-MTA: DNS; myhost.blaha.com
Diagnostic-Code: SMTP; 550 5.7.1 <john@myhost.blaha.com>... Relaying denied
Last-Attempt-Date: Sat, 14 Sep 2002 06:30:46 -0700 (PDT)
Från: xxx <xxxnoone@mac.com>
Datum: lör 14 sep 2002 15.30.35
Till: john@myhost.blaha.com
Ämne: ieuihedf
pijsfgpisjdggs
-----------
Whats up with that?
/John -
Need /etc/mail/access
2002-09-15 17:54:23 James Duncan Davidson |
[Reply | View]
You need to have the following in your /etc/mail/access file:
10.13.10.225 RELAY
And of course, refresh the access db after making this change.
-
m4 is at issue (maybe?)
2002-09-13 10:05:24 anonymous2 [Reply | View]
with developer tools installed it does install the source for m4 (which i tried compiling, without luck in executing commands) there must be something extra that needs to be done to have m4 working. either that or i have a different dev. tools to everyone else. the exact error messages are in my other message. i appreciate duncan is on holiday, is there anyone else who can help? -
m4 is at issue (maybe?)
2002-09-15 18:01:14 James Duncan Davidson |
[Reply | View]
You won't need to compile m4. It's installed on all of my systems. Here's the recipe that I used (and documented in Setting up Jaguar as a Site Server):
- Install Jaguar
- Install Dev tools making sure that the optional BSD development tools are installed
That's it. Now, the BSD optional tools are hidden behind the "Customize" button on the Dev tools installer.
-
RE: errors
2002-09-13 08:00:17 anonymous2 [Reply | View]
I get the same errors as you. I understand from comments below that m4 (required to rebuild the sendmail configuration file) is included with the developer tools. I don't know that I want to install all that stuff. I tried getting m4 from the source, but it won't install properly (as is) under OS X.
So, I'd like to know if there is some other way to modify the configuration of sendmail....
-
great articles, after SMTP_AUTH how about
2002-09-12 21:27:54 anonymous2 [Reply | View]
a nice Web based system for when we're on the road
and have to use http? -
great articles, after SMTP_AUTH how about
2002-09-16 20:03:21 James Duncan Davidson |
[Reply | View]
Yep. That would be nice. :) It's on my list of things to delve into for sure! -
great articles, after SMTP_AUTH how about
2002-09-23 23:32:29 cowboy_x [Reply | View]
I'll happily provide code to a dandy PHP webmail package if someone can help me figger out why IMAP_OPEN() just idles into infinity...
$link = imap_open( '{localhost:993/imap}INBOX','myusername','mypassword' );
(/imap/ssl/novalidate-cert errors out)
-
Re: SMTP_AUTH?
SMTP_AUTH?
SMTP_AUTH?
2002-09-12 18:38:43 amaral [Reply | View]
Kudos for your articles. I too am looking forward to see some help with SMTP_AUTH.
ZP
-
errors
2002-09-12 04:52:05 anonymous2 [Reply | View]
i don't think these are normal... and i do have dev tools installed so i don't understand why it won't recognize the m4 command.
[melchiors-Computer:/etc/mail] melchior% sudo newaliases
Warning: .cf file is out of date: sendmail 8.12.2 supports version 10, .cf file is version 0
No local mailer defined
QueueDirectory (Q) option must be set
[melchiors-Computer:/etc/mail] melchior%
and
[melchiors-Computer:/etc/mail] melchior% sudo ./update
Regenerating sendmail.cf
./update: m4: command not found
Starting mail services
554 5.0.0 No local mailer defined
554 5.0.0 QueueDirectory (Q) option must be set
[melchiors-Computer:/etc/mail] melchior%
-
errors
2002-09-24 12:22:53 James Duncan Davidson |
[Reply | View]
Execute a `which m4` command and see if it is installed for sure on the system. For me:
% which m4
/usr/bin/m4
-
SMTP_AUTH?
2002-09-11 16:53:12 anonymous2 [Reply | View]
Hey James, great article!
We could use some help figuring out how to configure SMTP_AUTH on OS X, which would help with allowing only authorized users to send mail from anywhere on the internet!
-
Working on it (SMTP_AUTH)
2002-09-12 14:39:02 James Duncan Davidson |
[Reply | View]
Thanks for the kind words! :)
As far as SMTP_AUTH, I'm currently in the investigative process on this. Sendmail requires SASL to do SMTP_AUTH. Jaguar ships with a SASL library, but I haven't yet done the dance to make them play with each other. After I get back from my trip this week, I'll be looking into that a bit deeper and hope to get some news out on that.
-
Developer Tools apparently required
2002-09-11 13:48:34 James Duncan Davidson |
[Reply | View]
I've been pinged by a reader and told that m4 is only installed with the Developer Tools. This small oversight was caused by my having the developer tools always installed on all of my machines. If you don't have the dev tools installed and the m4 instructions don't work, now you know why.
-
Typo on page one
2002-09-10 18:11:49 anonymous2 [Reply | View]
The following lines on Page 1 have a typo:
/usr/sbin/sendmail -OdontBlameSendamil=GroupWritableDirPathSafe -bd -q1h
/usr/sbin/sendmail -OdontBlameSendamil=GroupWritableDirPathSafe -C /etc/mail/submit.cf -q1h
and should be:
/usr/sbin/sendmail -OdontBlameSendmail=GroupWritableDirPathSafe -bd -q1h
/usr/sbin/sendmail -OdontBlameSendmail=GroupWritableDirPathSafe -C /etc/mail/submit.cf -q1h
Also, is the following a allowable test in /bin/sh on OS X:
if [ /some/file -nt /some/other/file ]; then
...
fi
I thought it was a /bin/ksh only feature. -
Tests in /bin/sh
2002-09-11 13:23:29 James Duncan Davidson |
[Reply | View]
Thanks for the quick pickup. I appreciate that as I'm currently in Alaska with limited connectivity.
As far as the test being valid in /bin/sh, under Jaguar, /bin/sh is now Bash 2.05. It's not valid "strict" /bin/sh speak, and as such is probably a litle sloppy, but I don't anticipate that we'll lose that test in future versions of Mac OS X.







Can anyone let me know the configuration I need for a dial-up connection. Obviously I don't have a fixed IP address so I suspect I need to add something to the config file.
Thanks.