On 26-Oct-08, at 12:11 AM, Stroller wrote:


On 26 Oct 2008, at 01:43, Charles Darwin wrote:
On 25-Oct-08, at 2:54 PM, Stroller wrote:
On 25 Oct 2008, at 17:01, Charles Darwin wrote:
...
In layman terms, what do mydomain and relayhost stand for? I am running 9.5.0 Darwin (think BSD) and I would like to setup my postfix to send messages to other machines on my network and/or over the Internet.

In your case, from the headers of your email, mydomain is dsl.bell.ca Your "myhostname" would be bas2-montreal45-1279494405.dsl.bell.ca, although you would probably JUST use relayhost and ignore these settings.

#Yes indeed. Very nice.
$ postconf |grep bell
mydomain = dsl.bell.ca
myhostname = bas2-montreal45-1242554840.dsl.bell.ca
$ curl -s http://checkip.dyndns.org/ |sed 's/^.*ss:\ \(.*[0-9]\)\<.* $/\1/'
74.15.225.216

Now question is who puts it into postconf's output. Does postfix gets it from my network settings automatically?

I'm surprised to read you asking this. I meant "this is what your mydomain would or should be". I'm afraid I'm too inexperienced to answer that question - I have always configured them manually on my Linux systems.

I am asking because if this is something that postfix inherits if you will automatically then why bother defining it manually?



I use, for example, smtp.gmail.com when I use my gmail account and there Apple's Mail.app takes care of authentication and the rest of it. Do I have to setup postfix to do that as well?

You can do.

Can postfix authenticate to gmail too?

Yes.
See http://www.postfix.org/SASL_README.html#client_sasl

My ISP's SMTP is smtp1.sympatico.ca , if that helps.

I would probably relay via this server (set it as "relayhost" in main.cf), as most ISP's will normally just allow anyone on their network to send mail through their SMTP servers without authenticating.

$ cat /Volumes/neo/opt/etc/postfix/main.cf |grep ^my && cat /Volumes/ neo/opt/etc/postfix/main.cf |grep ^relay myhostname = $(uname -n) #since this is dynamic; the one serving yesterday is not available today
mydomain = dsl.bell.ca
relayhost = smtp1.sympatico.ca

#Firing up postfix and sending a test message 'mail [EMAIL PROTECTED]

$ tail -f /var/log/mail.log
Oct 26 10:30:48 bas2-montreal45-1242554961 postfix/master[383]: daemon started -- version 2.4.3, configuration /etc/postfix Oct 26 10:30:48 bas2-montreal45-1242554961 postfix/qmgr[385]: 4A7521F61D7: from=<[EMAIL PROTECTED]>, size=303, nrcpt=1 (queue active) Oct 26 10:30:48 bas2-montreal45-1242554961 postfix/qmgr[385]: B3BB917FE7F: from=<>, size=2238, nrcpt=1 (queue active) Oct 26 10:30:48 bas2-montreal45-1242554961 postfix/qmgr[385]: 6E22817FC75: from=<[EMAIL PROTECTED]>, size=304, nrcpt=1 (queue active) Oct 26 10:30:48 bas2-montreal45-1242554961 postfix/qmgr[385]: B807617FE80: from=<>, size=2232, nrcpt=1 (queue active) Oct 26 10:30:48 bas2-montreal45-1242554961 postfix/qmgr[385]: 93F9917FEFC: from=<[EMAIL PROTECTED]>, size=304, nrcpt=1 (queue active) Oct 26 10:30:48 bas2-montreal45-1242554961 postfix/qmgr[385]: BAA7F17FE82: from=<>, size=2236, nrcpt=1 (queue active) Oct 26 10:30:48 bas2-montreal45-1242554961 postfix/qmgr[385]: B56C21F61F4: from=<[EMAIL PROTECTED]>, size=303, nrcpt=1 (queue active) Oct 26 10:30:48 bas2-montreal45-1242554961 postfix/qmgr[385]: C4FE417FC0D: from=<[EMAIL PROTECTED]>, size=305, nrcpt=1 (queue active) Oct 26 10:30:54 bas2-montreal45-1242554961 postfix/smtp[394]: connect to gmail-smtp-in.l.google.com[72.14.205.114]: Connection refused (port 25) Oct 26 10:31:18 bas2-montreal45-1242554961 postfix/smtp[388]: connect to bas2-montreal45-1279781140.dsl.bell.ca[76.71.233.20]: Operation timed out (port 25) Oct 26 10:31:18 bas2-montreal45-1242554961 postfix/smtp[390]: connect to bas2-montreal45-1279781140.dsl.bell.ca[76.71.233.20]: Operation timed out (port 25) Oct 26 10:31:18 bas2-montreal45-1242554961 postfix/smtp[392]: connect to bas2-montreal45-1279781140.dsl.bell.ca[76.71.233.20]: Operation timed out (port 25) Oct 26 10:31:18 bas2-montreal45-1242554961 postfix/smtp[388]: B3BB917FE7F: to=<[EMAIL PROTECTED]>, relay=none, delay=688172, delays=688142/0.14/30/0, dsn=4.4.1, status=deferred (connect to bas2- montreal45-1279781140.dsl.bell.ca[76.71.233.20]: Operation timed out) Oct 26 10:31:18 bas2-montreal45-1242554961 postfix/smtp[390]: B807617FE80: to=<[EMAIL PROTECTED]>, relay=none, delay=688172, delays=688142/0.09/30/0, dsn=4.4.1, status=deferred (connect to bas2- montreal45-1279781140.dsl.bell.ca[76.71.233.20]: Operation timed out) Oct 26 10:31:18 bas2-montreal45-1242554961 postfix/smtp[392]: BAA7F17FE82: to=<[EMAIL PROTECTED]>, relay=none, delay=688172, delays=688142/0.07/30/0, dsn=4.4.1, status=deferred (connect to bas2- montreal45-1279781140.dsl.bell.ca[76.71.233.20]: Operation timed out) Oct 26 10:31:18 bas2-montreal45-1242554961 postfix/qmgr[385]: B807617FE80: from=<>, status=expired, returned to sender Oct 26 10:31:18 bas2-montreal45-1242554961 postfix/qmgr[385]: B3BB917FE7F: from=<>, status=expired, returned to sender Oct 26 10:31:18 bas2-montreal45-1242554961 postfix/qmgr[385]: BAA7F17FE82: from=<>, status=expired, returned to sender Oct 26 10:31:18 bas2-montreal45-1242554961 postfix/qmgr[385]: B807617FE80: removed Oct 26 10:31:18 bas2-montreal45-1242554961 postfix/qmgr[385]: B3BB917FE7F: removed Oct 26 10:31:18 bas2-montreal45-1242554961 postfix/qmgr[385]: BAA7F17FE82: removed Oct 26 10:31:19 bas2-montreal45-1242554961 postfix/smtp[389]: connect to gmail-smtp-in.l.google.com[72.14.205.27]: Operation timed out (port 25) Oct 26 10:31:19 bas2-montreal45-1242554961 postfix/smtp[391]: connect to gmail-smtp-in.l.google.com[72.14.205.114]: Operation timed out (port 25) Oct 26 10:31:19 bas2-montreal45-1242554961 postfix/smtp[393]: connect to gmail-smtp-in.l.google.com[72.14.205.114]: Operation timed out (port 25) Oct 26 10:31:19 bas2-montreal45-1242554961 postfix/smtp[387]: connect to gmail-smtp-in.l.google.com[72.14.205.114]: Operation timed out (port 25) Oct 26 10:31:24 bas2-montreal45-1242554961 postfix/smtp[394]: connect to gmail-smtp-in.l.google.com[72.14.205.27]: Operation timed out (port 25) Oct 26 10:31:49 bas2-montreal45-1242554961 postfix/smtp[389]: connect to gmail-smtp-in.l.google.com[72.14.205.114]: Operation timed out (port 25) Oct 26 10:31:49 bas2-montreal45-1242554961 postfix/smtp[391]: connect to gmail-smtp-in.l.google.com[72.14.205.27]: Operation timed out (port 25) Oct 26 10:31:49 bas2-montreal45-1242554961 postfix/smtp[393]: connect to gmail-smtp-in.l.google.com[72.14.205.27]: Operation timed out (port 25) Oct 26 10:31:49 bas2-montreal45-1242554961 postfix/smtp[387]: connect to gmail-smtp-in.l.google.com[72.14.205.27]: Operation timed out (port 25) Oct 26 10:31:54 bas2-montreal45-1242554961 postfix/smtp[394]: connect to alt2.gmail-smtp-in.l.google.com[209.85.199.114]: Operation timed out (port 25) Oct 26 10:32:19 bas2-montreal45-1242554961 postfix/smtp[389]: connect to alt2.gmail-smtp-in.l.google.com[209.85.199.114]: Operation timed out (port 25) Oct 26 10:32:19 bas2-montreal45-1242554961 postfix/smtp[391]: connect to alt2.gmail-smtp-in.l.google.com[209.85.199.27]: Operation timed out (port 25) Oct 26 10:32:19 bas2-montreal45-1242554961 postfix/smtp[393]: connect to alt2.gmail-smtp-in.l.google.com[209.85.199.27]: Operation timed out (port 25) Oct 26 10:32:19 bas2-montreal45-1242554961 postfix/smtp[387]: connect to alt2.gmail-smtp-in.l.google.com[209.85.199.27]: Operation timed out (port 25) Oct 26 10:32:24 bas2-montreal45-1242554961 postfix/smtp[394]: connect to alt2.gmail-smtp-in.l.google.com[209.85.199.27]: Operation timed out (port 25) Oct 26 10:32:34 bas2-montreal45-1242554961 postfix/master[411]: fatal: open lock file pid/master.pid: unable to set exclusive lock: Resource temporarily unavailable Oct 26 10:32:34 bas2-montreal45-1242554961 postfix/pickup[384]: 46837217D8B: uid=501 from=<pm> Oct 26 10:32:34 bas2-montreal45-1242554961 postfix/cleanup[412]: 46837217D8B: message-id=<[EMAIL PROTECTED] > Oct 26 10:32:34 bas2-montreal45-1242554961 postfix/qmgr[385]: 46837217D8B: from=<[EMAIL PROTECTED]>, size=368, nrcpt=1 (queue active) Oct 26 10:32:49 bas2-montreal45-1242554961 postfix/smtp[389]: connect to alt2.gmail-smtp-in.l.google.com[209.85.199.27]: Operation timed out (port 25) Oct 26 10:32:49 bas2-montreal45-1242554961 postfix/smtp[391]: connect to alt1.gmail-smtp-in.l.google.com[72.14.221.114]: Operation timed out (port 25) Oct 26 10:32:49 bas2-montreal45-1242554961 postfix/smtp[393]: connect to alt1.gmail-smtp-in.l.google.com[72.14.221.27]: Operation timed out (port 25) Oct 26 10:32:49 bas2-montreal45-1242554961 postfix/smtp[387]: connect to alt1.gmail-smtp-in.l.google.com[72.14.221.27]: Operation timed out (port 25) Oct 26 10:32:54 bas2-montreal45-1242554961 postfix/smtp[394]: connect to alt1.gmail-smtp-in.l.google.com[72.14.221.27]: Operation timed out (port 25) Oct 26 10:32:54 bas2-montreal45-1242554961 postfix/smtp[394]: C4FE417FC0D: to=<[EMAIL PROTECTED]>, relay=none, delay=688565, delays=688440/0.06/125/0, dsn=4.4.1, status=deferred (connect to alt1.gmail-smtp-in.l.google.com[72.14.221.27]: Operation timed out) Oct 26 10:32:54 bas2-montreal45-1242554961 postfix/qmgr[385]: C4FE417FC0D: from=<[EMAIL PROTECTED]>, status=expired, returned to sender Oct 26 10:32:54 bas2-montreal45-1242554961 postfix/cleanup[412]: 1C034217D8D: message-id=<[EMAIL PROTECTED] > Oct 26 10:32:54 bas2-montreal45-1242554961 postfix/qmgr[385]: 1C034217D8D: from=<>, size=2341, nrcpt=1 (queue active) Oct 26 10:32:54 bas2-montreal45-1242554961 postfix/bounce[407]: C4FE417FC0D: sender non-delivery notification: 1C034217D8D Oct 26 10:32:54 bas2-montreal45-1242554961 postfix/qmgr[385]: C4FE417FC0D: removed Oct 26 10:32:58 bas2-montreal45-1242554961 postfix/smtp[390]: 1C034217D8D: to=<[EMAIL PROTECTED]>, relay=none, delay=4, delays=0.01/0/4/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=pms-macbook.local type=MX: Host not found, try again) Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/smtp[389]: connect to alt1.gmail-smtp-in.l.google.com[72.14.221.27]: Operation timed out (port 25) Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/smtp[389]: 6E22817FC75: to=<[EMAIL PROTECTED]>, relay=none, delay=688415, delays=688264/0.1/150/0, dsn=4.4.1, status=deferred (connect to alt1.gmail-smtp-in.l.google.com[72.14.221.27]: Operation timed out) Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/qmgr[385]: 6E22817FC75: from=<[EMAIL PROTECTED]>, status=expired, returned to sender Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/smtp[391]: connect to alt1.gmail-smtp-in.l.google.com[72.14.221.27]: Operation timed out (port 25) Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/smtp[393]: connect to alt1.gmail-smtp-in.l.google.com[72.14.221.114]: Operation timed out (port 25) Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/cleanup[412]: 13F2C217D94: message-id=<[EMAIL PROTECTED] > Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/smtp[387]: connect to alt1.gmail-smtp-in.l.google.com[72.14.221.114]: Operation timed out (port 25) Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/smtp[391]: 93F9917FEFC: to=<[EMAIL PROTECTED]>, relay=none, delay=687798, delays=687648/0.08/150/0, dsn=4.4.1, status=deferred (connect to alt1.gmail-smtp-in.l.google.com[72.14.221.27]: Operation timed out) Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/qmgr[385]: 13F2C217D94: from=<>, size=2340, nrcpt=1 (queue active) Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/bounce[406]: 6E22817FC75: sender non-delivery notification: 13F2C217D94 Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/smtp[393]: B56C21F61F4: to=<[EMAIL PROTECTED]>, relay=none, delay=680554, delays=680404/0.07/150/0, dsn=4.4.1, status=deferred (connect to alt1.gmail-smtp-in.l.google.com[72.14.221.114]: Operation timed out) Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/smtp[387]: 4A7521F61D7: to=<[EMAIL PROTECTED]>, relay=none, delay=680580, delays=680429/0.19/150/0, dsn=4.4.1, status=deferred (connect to alt1.gmail-smtp-in.l.google.com[72.14.221.114]: Operation timed out) Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/qmgr[385]: 93F9917FEFC: from=<[EMAIL PROTECTED]>, status=expired, returned to sender Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/qmgr[385]: 6E22817FC75: removed Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/qmgr[385]: 4A7521F61D7: from=<[EMAIL PROTECTED]>, status=expired, returned to sender Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/qmgr[385]: B56C21F61F4: from=<[EMAIL PROTECTED]>, status=expired, returned to sender Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/cleanup[412]: 20FE7217D99: message-id=<[EMAIL PROTECTED] > Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/qmgr[385]: 20FE7217D99: from=<>, size=2352, nrcpt=1 (queue active) Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/bounce[407]: 93F9917FEFC: sender non-delivery notification: 20FE7217D99 Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/qmgr[385]: 93F9917FEFC: removed Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/cleanup[412]: 24135217D9B: message-id=<[EMAIL PROTECTED] > Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/cleanup[420]: 23FB2217D9A: message-id=<[EMAIL PROTECTED] > Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/bounce[418]: 4A7521F61D7: sender non-delivery notification: 23FB2217D9A Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/qmgr[385]: 23FB2217D9A: from=<>, size=2351, nrcpt=1 (queue active) Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/bounce[417]: B56C21F61F4: sender non-delivery notification: 24135217D9B Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/qmgr[385]: 4A7521F61D7: removed Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/qmgr[385]: 24135217D9B: from=<>, size=2351, nrcpt=1 (queue active) Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/qmgr[385]: B56C21F61F4: removed Oct 26 10:33:19 bas2-montreal45-1242554961 postfix/error[419]: 46837217D8B: to=<[EMAIL PROTECTED]>, relay=none, delay=45, delays=0.03/45/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt1.gmail-smtp-in.l.google.com[72.14.221.114]: Operation timed out) Oct 26 10:33:23 bas2-montreal45-1242554961 postfix/smtp[394]: 13F2C217D94: to=<[EMAIL PROTECTED]>, relay=none, delay=4.1, delays=0.03/0.02/4/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=pms-macbook.local type=MX: Host not found, try again) Oct 26 10:33:23 bas2-montreal45-1242554961 postfix/smtp[387]: 20FE7217D99: to=<[EMAIL PROTECTED]>, relay=none, delay=4, delays=0.02/0/4/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=pms-macbook.local type=MX: Host not found, try again) Oct 26 10:33:23 bas2-montreal45-1242554961 postfix/smtp[390]: 23FB2217D9A: to=<[EMAIL PROTECTED]>, relay=none, delay=4.1, delays=0.03/0.03/4/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=pms-macbook.local type=MX: Host not found, try again) Oct 26 10:33:23 bas2-montreal45-1242554961 postfix/smtp[389]: 24135217D9B: to=<[EMAIL PROTECTED]>, relay=none, delay=4.1, delays=0.05/0/4/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=pms-macbook.local type=MX: Host not found, try again)

### trying to isolate the problem by changing the relayhost
### $ cat /Volumes/neo/opt/etc/postfix/main.cf |grep ^relay
### relayhost = smtp1.sympatico.ca

Oct 26 10:40:48 bas2-montreal45-1242554961 postfix/qmgr[385]: 13F2C217D94: from=<>, size=2340, nrcpt=1 (queue active) Oct 26 10:40:48 bas2-montreal45-1242554961 postfix/qmgr[385]: 1C034217D8D: from=<>, size=2341, nrcpt=1 (queue active) Oct 26 10:40:48 bas2-montreal45-1242554961 postfix/qmgr[385]: 20FE7217D99: from=<>, size=2352, nrcpt=1 (queue active) Oct 26 10:40:48 bas2-montreal45-1242554961 postfix/qmgr[385]: 23FB2217D9A: from=<>, size=2351, nrcpt=1 (queue active) Oct 26 10:40:48 bas2-montreal45-1242554961 postfix/qmgr[385]: 24135217D9B: from=<>, size=2351, nrcpt=1 (queue active) Oct 26 10:40:48 bas2-montreal45-1242554961 postfix/qmgr[385]: 46837217D8B: from=<[EMAIL PROTECTED]>, size=368, nrcpt=1 (queue active) Oct 26 10:40:52 bas2-montreal45-1242554961 postfix/smtp[462]: 1C034217D8D: to=<[EMAIL PROTECTED]>, relay=none, delay=478, delays=474/0.02/4/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=pms-macbook.local type=MX: Host not found, try again) Oct 26 10:40:52 bas2-montreal45-1242554961 postfix/smtp[460]: 13F2C217D94: to=<[EMAIL PROTECTED]>, relay=none, delay=453, delays=449/0.02/4/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=pms-macbook.local type=MX: Host not found, try again) Oct 26 10:40:52 bas2-montreal45-1242554961 postfix/smtp[464]: 23FB2217D9A: to=<[EMAIL PROTECTED]>, relay=none, delay=453, delays=449/0.03/4/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=pms-macbook.local type=MX: Host not found, try again) Oct 26 10:40:52 bas2-montreal45-1242554961 postfix/smtp[463]: 20FE7217D99: to=<[EMAIL PROTECTED]>, relay=none, delay=453, delays=449/0.02/4/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=pms-macbook.local type=MX: Host not found, try again) Oct 26 10:40:52 bas2-montreal45-1242554961 postfix/smtp[465]: 24135217D9B: to=<[EMAIL PROTECTED]>, relay=none, delay=453, delays=449/0.04/4/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=pms-macbook.local type=MX: Host not found, try again) Oct 26 10:41:18 bas2-montreal45-1242554961 postfix/smtp[466]: connect to gmail-smtp-in.l.google.com[72.14.205.27]: Operation timed out (port 25) Oct 26 10:41:48 bas2-montreal45-1242554961 postfix/smtp[466]: connect to gmail-smtp-in.l.google.com[72.14.205.114]: Operation timed out (port 25) Oct 26 10:42:18 bas2-montreal45-1242554961 postfix/smtp[466]: connect to alt2.gmail-smtp-in.l.google.com[209.85.199.114]: Operation timed out (port 25) Oct 26 10:42:48 bas2-montreal45-1242554961 postfix/smtp[466]: connect to alt2.gmail-smtp-in.l.google.com[209.85.199.27]: Operation timed out (port 25) Oct 26 10:43:18 bas2-montreal45-1242554961 postfix/smtp[466]: connect to alt1.gmail-smtp-in.l.google.com[72.14.221.114]: Operation timed out (port 25) Oct 26 10:43:18 bas2-montreal45-1242554961 postfix/smtp[466]: 46837217D8B: to=<[EMAIL PROTECTED]>, relay=none, delay=644, delays=494/0.04/150/0, dsn=4.4.1, status=deferred (connect to alt1.gmail-smtp-in.l.google.com[72.14.221.114]: Operation timed out)

In Mail.app you could use this instead of the Gmail SMTP server. But if your machine is a laptop, then it will not be allowed to relay through smtp1.sympatico.ca when you're visiting your cousin who uses another ISP, so in that case Gmail would make sense. Note though that Gmail reformat outgoing addresses, so even if you wanted the from: address to read "[EMAIL PROTECTED]" it would be altered to [EMAIL PROTECTED]

and what about the network mailing question? How do I send mail p2p? and how does sendmail, BSD's `mail' and pickup directory factor into all of this? Not from my home ISP but at university I have had with with pickup directory (who is hosting that I wish I knew) and permissions there. My ISP's SMTP is smtp1.sympatico.ca , if that helps.
...
I am supervising 10 other macs and I want them to mail their IPs as soon as they get one (and report some other parameter of the machine). I have it all scripted and just need a mail agent that I can script. Plus sending mail from command line is cool. BTW Apple's Mail.app used to handle unix type mail accounts. It is no longer an option. Do you know how I can set it up to work with `mail' or postfix again?

Ok, when postfix receives a message destined for mydestination it puts it ~addressee/home_mailbox, where `postconfig | grep home_mailbox`. Often one will run a POP3 or IMAP server, and when a client connects via POP3 or IMAP the server configuration tells it to get the messages from there.

Unix mailclients like pine, mutt & Thunderbird have an option to read the mails directly from a store directory (i.e. home_mailbox), and perhaps this is what you mean by your "pickup directory". If Mail.app had this facility I think it must have been before I started using it, 10.3

I guess it used to be around in older versions <http://www.macdevcenter.com/mac/2002/01/22/graphics/Part2Mail1.jpg >



The problem with the way Mail.app stores its mail is that it has separate store directories for each account, e.g. ~/Library/Mail/[EMAIL PROTECTED] /INBOX.imapmbox/Messages/ (where mail.stroller.uk.eu.org is my IMAP server) and there's no way to know - and tell postfix - of a full valid mailbox directory for any given user, so if you try shoving messages directly into there with postfix then things will break when you add a new user to the system & try delivering mail to [EMAIL PROTECTED] instead of [EMAIL PROTECTED] An alternative might be to run cron jobs to move them from the store directory to there, but this too is prone to breakage. Oh, you might be able to tell Mail.app to read from a store directory by hacking Mail's plist file, but you'd have to do this manually for each user on the system.

A more elegant way to do things - since you ask about sending mail "p2p" - is to run a POP server on your main machine (with .maildir as the home_mailbox name, so that it's hidden in Finder, or just using virtual mailboxes) and just tell Mail.app to connect to localhost and get the mail through the POP protocol.

This is pretty much what I would like to do at university. I would like to have my lab computers send p2p messages to each other without burdening the server. I will post the results tomorrow when I have access to machines.

Charles

Honestly, this is why I have a Linux box in the cupboard under the stairs, so that I can run Unixy stuff without the headaches.

The best way would probably to have all machines relay through smtp1.sympatico.ca (perhaps relaying first through a "master" postfix server on the LAN) and simply address messages to your gmail account or whatever.

Stroller.

Update: I have another question and that is about hosting a mail server. Is it like hosting a web server? Like one does with apache? would that be a solution to the p2p question?

Charles

Reply via email to