The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   OS X Developer (http://hintsforums.macworld.com/forumdisplay.php?f=27)
-   -   shell "mail" (NOT "Mail") -- & Python & PHP, etc. (http://hintsforums.macworld.com/showthread.php?t=71626)

dgringo 04-28-2007 11:00 AM

shell "mail" (NOT "Mail") -- & Python & PHP, etc.
 
:( OK, I have been, indirectly, chasing this issue for months, if not years. As far as I can see, most scripting languages (even non-scripting ones) send e-mails via the same low level mail facility and thus, indirectly, shell 'mail' -- certainly I have always been stuck getting the languages and the shell from e-mailing. Obviously the GUI based Mail.app works fine.

I program from home, on MY LAN, behind MY router, etc. My email is via an external ISP and e-mail via Apple (.Mac -- thus IMAP.)

I have tried Postfix Enabler, but to no effect, regarding this shell 'mail' -- of course it allows my Postfix to work, for me to send via my 'localhost' (via Mail.app) BUT NO shell 'mail'.

This is part of the shell 'mail' error message -- as I do get the failure bounces (to the 'mail' root or webmaster NOT Mail.app) as it happens:

Code:

<dgringo.test@mac.com>: host smtp.mac.com[17.250.248.45] said: 553 5.1.0
    <dgringo@iMacAlone.local>... From address does not match authentication.
    (in reply to MAIL FROM command)

I was emailing from my OS X account (to a .Mac alias of mine), but why is the reply always based on the individual Mac from which it came, and or how can I correct this?

Here is hoping for assistance and or guidance.

David Green.

DarrellGreenwood 04-28-2007 01:04 PM

Quote:

Originally Posted by dgringo (Post 375365)
:(I have tried Postfix Enabler, but to no effect, regarding this shell 'mail' -- of course it allows my Postfix to work, for me to send via my 'localhost' (via Mail.app) BUT NO shell 'mail'.

This is part of the shell 'mail' error message -- as I do get the failure bounces (to the 'mail' root or webmaster NOT Mail.app) as it happens:

Code:

<dgringo.test@mac.com>: host smtp.mac.com[17.250.248.45] said: 553 5.1.0
    <dgringo@iMacAlone.local>... From address does not match authentication.
    (in reply to MAIL FROM command)


I just used mail to send an email to myself.

Code:

xxxx:~ darrell$ mail xxxxx@telus.net
Subject: test

this is a test

.
EOT
xxxx:~ darrell$


It worked. Here are the headers

Code:

Return-Path: <darrell@xxxx.dyndns.org>
Received: from priv-edmwaa06.telusplanet.net ([64.180.1.9])
          by priv-edmwes50.telusplanet.net
          (InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP
          id <20070428163520.KUHT14683.priv-edmwes50.telusplanet.net@priv-edmwaa06.telusplanet.net>
          for <xxxxx@telus.net>; Sat, 28 Apr 2007 10:35:20 -0600
Received: from xxxx.dyndns.org (d64-180-1-9.bchsia.telus.net [64.180.1.9])
        by priv-edmwaa06.telusplanet.net (BorderWare MXtreme Infinity Mail Firewall) with ESMTP id F7E9M68MJ0
        for <xxxxx@telus.net>; Sat, 28 Apr 2007 10:35:19 -0600 (MDT)
Received: by xxxx.dyndns.org (Postfix, from userid 501)
        id 5FFB58284CF; Sat, 28 Apr 2007 09:35:19 -0700 (PDT)
To: xxxxx@telus.net
Subject: test
Message-Id: <20070428163519.5FFB58284CF@xxxx.dyndns.org>
Date: Sat, 28 Apr 2007 09:35:19 -0700 (PDT)
From: darrell@xxxx.dyndns.org (Darrell Greenwood)

A few things that may be different between our configurations.

I have a dyndns.org domain name (costs nothing, https://www.dyndns.com/services/pricing/#free)... I use DNSupdate to keep the IP address synced -- http://www.btree.org/dnsupdate/)

My computer is set in its /etc/hostconfig file to that domain name using these instructions:

> The fix for me was recommended by
> another group: get a dyndns.org account and change the HOSTNAME line in
> /etc/hostconfig from
>
> HOSTNAME=-AUTOMATIC-
>
> to
>
> HOSTNAME=montanaro.dyndns.org

The postfix config has the 'smart host' set to my ISP's smtp server.

In your case the mac.com smtp server is complaining it doesn't like the .local domain name.

Cheers,

Darrell

acme.mail.order 04-28-2007 09:21 PM

In my experience, /usr/bin/mail usually works fine, assuming postfix/sendmail are running. What stops it these days is your service provider blocking outbound connections and mail servers rejecting messages that come from dynamic addresses and addresses with an invalid reverse lookup.

So, you might want to try configuring things to relay all mail through your ISP's server. Another possible speed bump is you didn't check your POP account within the previous 10 minutes but that's not all that difficult to script.

dgringo 04-29-2007 07:03 AM

hostconfig...
 
Darrell; Yes, I use dyndns too... I used to have my Mac update itself, i.e. the same as you, but since upgrading my router to a NETGEAR one (a long time ago), NETGEAR knows about dyndns and keeps my IP synced.

OK, we seem to be similar... although my /etc/hostconfig DOES NOT have a HOSTNAME=. Should I just, simply, add this directive in -- as your suggestion has the air of being proper ?

My postfix settings seem to otherwise be as per yours; it complains about the .local on the perceived domain name.

Thanks (getting excited about a possible fix/explanation),

David

DarrellGreenwood 04-29-2007 03:59 PM

Quote:

Originally Posted by dgringo (Post 375526)
OK, we seem to be similar... although my /etc/hostconfig DOES NOT have a HOSTNAME=. Should I just, simply, add this directive in

Yes.

My recollection is the HOSTNAME=-AUTOMATIC- was dropped in the hostconfig file between Panther and Tiger. When I did a Tiger install on another machine I just added it in and it worked fine.

See http://www.opendarwin.org/en/faq/ch02.html#hostconfig for more information.

Your HOSTNAME will have to be what smtp.mac.com allows when it issues the command MAIL FROM.

Cheers,

Darrell

dgringo 04-29-2007 05:32 PM

Thanks for the opendarwin clues :)

Off hand, and assuming adding the HOSTNAME works, as I have multiple Macs within my Internet, can they all use my dyndns value as their HOSTNAME or should I take another route?

DarrellGreenwood 04-29-2007 06:10 PM

Quote:

Originally Posted by dgringo (Post 375604)
Thanks for the opendarwin clues :)

Off hand, and assuming adding the HOSTNAME works, as I have multiple Macs within my Internet, can they all use my dyndns value as their HOSTNAME or should I take another route?

I don't know.

You appear to have a different configuration than I have.

You are using a authenticating smtp server and it cares what is in the FROM header of emails. I am not using an authenticating smtp server and my server doesn't care what is in the FROM header.

You are using NAT. I am not.

How that will all play out, I'll be interested to hear :)

See if the changing the hostname works first, would be my advice. It is a simple change and is easily reverted. You will need a restart for it to take full effect.

Cheers,

Darrell

dgringo 04-29-2007 06:16 PM

Sadly, I must ask How does one restart the mail system <embarrassed> ?

DarrellGreenwood 04-29-2007 06:24 PM

Quote:

Originally Posted by dgringo (Post 375615)
Sadly, I must ask How does one restart the mail system <embarrassed> ?

Sorry I wasn't clear. I meant a system restart. Apple Menu -> Restart...

Cheers,

Darrell

dgringo 04-30-2007 03:45 AM

A Restart?? But this is why I use Macs NOT ******* PCs!!


Yeah, OK :)

dgringo 04-30-2007 06:23 AM

Quote:

Cannot send message using the server localhost

The server response was: <dgringo.info@mac.com>: Recipient address rejected: User unknown in local recipient table

Use the pop-up menu below to try a different outgoing mail server. All messages will use this server until you quit Mail or change your network settings.

Message from: dgringo.test@mac.com
It seems I might now try:
1- my non-aliased email
2- "local recipient table" - possibly consider keeping this valid.

Ponder, ponder -- why is doing development type work so obtuse (certainly if not from a Unix background) ?

David

DarrellGreenwood 04-30-2007 12:44 PM

Quote:

Originally Posted by dgringo (Post 375707)
Cannot send message using the server localhost

The server response was: <dgringo.info@mac.com>: Recipient address rejected: User unknown in local recipient table

It is unclear to me which server is complaining, localhost or mac.com. My localhost SMTP server doesn't care about Recipient addresses. My relay host SMTP server mail.telus.net doesn't either.

Have a look at your mail.log in Console, there may be more detail there.

Here are the logs of an email from Eudora thru my localhost SMTP server to my relay host mail.telus.net.

Eudora's setting for the SMTP server is 'localhost'. Postfix's smarthost or relayhost setting is mail.telus.net.

Eudora's log

Code:

Mon Apr 30 09:16:33 2007
28012544 1:1.35.1 localhost 25
28012544 16:0.0.13 Contacting localhost (127.0.0.1)...
28012544 16:0.1.31 220 xxxx.dyndns.org ESMTP Postfix
28012544 16:0.1.32 EHLO [10.17.145.2]
28012544 1:0.1.41 Sending xxxx@gmail.com, 9:16 AM 4/30/07 -0700, Test Message.
28012544 16:0.1.41 RSET
28012544 16:0.1.45 MAIL FROM:<xxxx@telus.net> size=1024
28012544 16:0.1.59 RCPT TO:<xxxx@gmail.com>
28012544 16:0.2.12 250 Ok
28012544 16:0.2.12 xxxx@gmail.com, 9:16 AM 4/30/07 -0700, Test Message
28012544 16:0.2.12 DATA
28012544 1:0.2.24 Succeeded.
28012544 1024:0.2.24 0.0 KBps
28012544 16:0.2.27
28012544 16:0.2.28 QUIT

localhost's mail.log

Code:


Apr 30 09:16:35 xxxx postfix/smtpd[24144]: connect from localhost[127.0.0.1]
Apr 30 09:16:35 xxxx postfix/smtpd[24144]: A2785844B23: client=localhost[127.0.0.1]
Apr 30 09:16:35 xxxx postfix/cleanup[24147]: A2785844B23: message-id=<p06240801c25bc6cc0860@[10.17.145.2]>
Apr 30 09:16:35 xxxx postfix/smtpd[24144]: disconnect from localhost[127.0.0.1]
Apr 30 09:16:36 xxxx postfix/smtp[24149]: A2785844B23: to=<xxxx@gmail.com>, relay=mail.telus.net[204.209.205.56], delay=1, status=sent (250 Ok: queued as 49KNNJDG1F)

Cheers

Darrell

dgringo 04-30-2007 03:10 PM

Points to make clear -- if they might help knowing about:

My local accounts (and administrator) on all my Macs is the same, BUT my email account on .Mac is the same PLUS a "1" ending; i.e. xxxx1@mac.com

The postfix administrator is as per the local one.

My SASL authentication uses, of course, the .Mac one (with the extra "1").

This is the current failure coming from "/var/log/mail.log":
NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 <xxxx.info@mac.com>: Recipient address rejected: User unknown in local recipient table; from=<xxxx.test@mac.com> to=<xxxx.info@mac.com> proto=ESMTP helo=<[127.0.0.1]>

It now fails with any .Mac account / alias.

It has always appeared to be trouble at my end; either authentication or recognition, as it is now.

Do you think my local / mail administrator must be xxx1@mac.com too, OR I should arrange for the Recipient table to be up to date and or correct, OR is there something more fundamental to correct?

I seem to always get to within the faintest of it all working, but it fails. If you do not mind, can we confer more about how I can help you help me to diagnose this -- as you do seem to have good suggestions and knowledge ?

David

DarrellGreenwood 04-30-2007 04:24 PM

Quote:

Originally Posted by dgringo (Post 375809)

This is the current failure coming from "/var/log/mail.log":
NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 <xxxx.info@mac.com>: Recipient address rejected: User unknown in local recipient table; from=<xxxx.test@mac.com> to=<xxxx.info@mac.com> proto=ESMTP helo=<[127.0.0.1]>

You may be running into mac.com's anti-spam rules.

If you have another SMTP server that will relay your email I would use that. (i.e., my ISP's SMTP server doesn't enforce address rules... it enforces source IP addresses for anti-spam. If your ISP has a similar SMTP server that you can use this would be the simplest solution.)

If your ISP doesn't block port 25 then use postfix as a direct SMTP server to where you want to send mail. i.e., remove the postfix 'smarthost' entry. (my ISP blocks port 25 hence I must relay via their SMTP server)

Quote:

Originally Posted by dgringo (Post 375809)

Do you think my local / mail administrator must be xxx1@mac.com too, OR I should arrange for the Recipient table to be up to date and or correct, OR is there something more fundamental to correct?

If you must use mac.com's SMTP server you'll have to play by its rules.

I don't know what they are, but it would appear from the error log above it wants specific addresses.

Code:

550 <xxxx.info@mac.com>: Recipient address rejected: User unknown in local recipient table
says to me mac.com is saying <xxxx.info@mac.com> is rejected. And the reason is that xxxx.info is not in mac.com's local user table. Is <xxxx.info@mac.com> supposed to be valid address at mac.com?

(Obfuscating the email addresses in these postings, for our own very good 'anti-spamming' reasons, makes it more difficult to see what exactly is going on.)

Cheers,

Darrell

p.s., responses from me will slow down, I'm on Galiano Island http://tinyurl.com/2ybjgr, with dialup access, for a couple of days.

dgringo 04-30-2007 05:39 PM

I thought the references to my "dgreen@" was the mail server incorrectly putting my local account (and the admin account) with "mac.com", the SMTP target -- i.e. my local accounts (Macs) are "dgreen" but I have to use "dgreen1", due to historical reasons, on .Mac. This, I presumed, was confusing the software.

And to confuse you, I set my "HOSTNAME=mac.com", thinking that would have helped.

The xxx.info@ and xxx.test@ are valid aliases at the .Mac end, thus, to me, showing that the problem was still at my end and NOT .Mac.

Bye-the-by, I have a hotmail, gmail and a couple other mail accounts. They are rarely used and, usually, have a different user name.

I also presume that as I my ISP only gives me internet access (I never bothered to use it's SMTP), whereas, Apple gives me the email, that I must have an unblocked port 25 -- yes?

(Re: obfuscation. I do not really take this anti-spamming seriously, but I felt it might look bad if /let it all hang out/.

Is this making some sense to you? :)

David

PS. I did work for MS for awhile, near Seattle. :(

DarrellGreenwood 04-30-2007 06:09 PM

Quote:

Originally Posted by dgringo (Post 375846)
I thought the references to my "dgreen@" was the mail server incorrectly putting my local account (and the admin account) with "mac.com", the SMTP target -- i.e. my local accounts (Macs) are "dgreen" but I have to use "dgreen1", due to historical reasons, on .Mac. This, I presumed, was confusing the software.

It would.


Quote:

Originally Posted by dgringo (Post 375846)
And to confuse you, I set my "HOSTNAME=mac.com", thinking that would have helped.

mac.com still doesn't like the email address. I don't know why.

Quote:

Originally Posted by dgringo (Post 375846)
The xxx.info@ and xxx.test@ are valid aliases at the .Mac end, thus, to me, showing that the problem was still at my end and NOT .Mac.

I think the problem is at mac.com


Quote:

Originally Posted by dgringo (Post 375846)

Bye-the-by, I have a hotmail, gmail and a couple other mail accounts. They are rarely used and, usually, have a different user name.

But they will not have simple SMTP access.

Quote:

Originally Posted by dgringo (Post 375846)

I also presume that as I my ISP only gives me internet access (I never bothered to use it's SMTP), whereas, Apple gives me the email, that I must have an unblocked port 25 -- yes?

Not necessarily. But if you do not have port 25 blocking, you can sent your email directly without going through mac.com. Try it. Remove postfix's 'smarthost' entry as they call the relay host. I did this for years until telus blocked my port 25 a couple of years ago.

Your problem is that you are trying to use mac.com as a relay host.

And it won't let you.

Quote:

Originally Posted by dgringo (Post 375846)
(Re: obfuscation. I do not really take this anti-spamming seriously, but I felt it might look bad if /let it all hang out/.

I do take it seriously.

I manage my spam by

1. munging my email addresses,

2. incrementing my email addresses when they receive spam,

3. guarding my email addresses.

At the moment I haven't had a spam in months. This is despite my email address being widely distributed by automated faq postings on Usenet and on a web site. (I have one never used email address that gets several hundred spams a month. It was exposed briefly on Usenet ten years ago)

Cheers,

Darrell

dgringo 05-01-2007 08:13 AM

(Security: Firstly, I vaguely try, BUT I do not wish my life to be messed up by EITHER spam OR overt efforts to avoid it; this is partially why I let .Mac handle my emails.)

As a developer, I do need the ability to email from the command line / shell of one or more of my Macs.

Having removed any Postfix Enabler smart host and HOSTCONFIG= from the /etc/hostconfig file, rebooted and, finally, viewing my up to date mail log (/var/log/mail.log), it seems to show it all working -- i.e. from Mail (from @mac.com) and from mail (from @iMacAlone) -- except no actual email arrival from mail.

Code:

May  1 11:20:31 iMacAlone postfix/smtpd[657]: disconnect from localhost[127.0.0.1]
May  1 11:20:21 iMacAlone postfix/qmgr[296]: 55EEA2234B9: removed
May  1 11:20:21 iMacAlone postfix/smtp[661]: 55EEA2234B9: to=<dgringo1@gmail.com>, relay=gmail-smtp-in.l.google.com[66.249.93.27], delay=0, status=sent (250 2.0.0 OK 1178014822 i39si539941ugd)
May  1 11:20:21 iMacAlone postfix/qmgr[296]: 55EEA2234B9: from=<dgringo@iMacAlone.local>, size=317, nrcpt=1 (queue active)
May  1 11:20:21 iMacAlone postfix/cleanup[660]: 55EEA2234B9: message-id=<20070501102021.55EEA2234B9@iMacAlone.local>
May  1 11:20:21 iMacAlone postfix/pickup[665]: 55EEA2234B9: uid=501 from=<dgringo>
May  1 11:19:31 iMacAlone postfix/qmgr[296]: 58B112234A6: removed
May  1 11:19:31 iMacAlone postfix/smtp[661]: 58B112234A6: to=<dgringo1@gmail.com>, relay=gmail-smtp-in.l.google.com[66.249.93.27], delay=0, status=sent (250 2.0.0 OK 1178014772 59si531870ugf)
May  1 11:19:31 iMacAlone postfix/qmgr[296]: 58B112234A6: from=<dgringo1@mac.com>, size=557, nrcpt=1 (queue active)
May  1 11:19:31 iMacAlone postfix/cleanup[660]: 58B112234A6: message-id=<1C79D91A-19D6-49D0-85C4-695B168E892F@mac.com>
May  1 11:19:31 iMacAlone postfix/smtpd[657]: 58B112234A6: client=localhost[127.0.0.1]
May  1 11:19:31 iMacAlone postfix/smtpd[657]: connect from localhost[127.0.0.1]
May  1 11:04:48 iMacAlone postfix/qmgr[296]: 273E922345B: removed
May  1 11:04:48 iMacAlone postfix/smtp[608]: 273E922345B: to=<dgringo1@gmail.com>, relay=gmail-smtp-in.l.google.com[66.249.93.27], delay=0, status=sent (250 2.0.0 OK 1178013889 q40si522354ugc)
May  1 11:04:48 iMacAlone postfix/qmgr[296]: 273E922345B: from=<dgringo@iMacAlone.local>, size=317, nrcpt=1 (queue active)
May  1 11:04:48 iMacAlone postfix/cleanup[606]: 273E922345B: message-id=<20070501100448.273E922345B@iMacAlone.local>
May  1 11:04:48 iMacAlone postfix/pickup[605]: 273E922345B: uid=501 from=<dgringo>

This is all very convoluted, but is the problem now that mail replies to @iMacAlone.local, while Mail replies to the known @mac.com ? I am assuming the problem has always been getting postfix/sendmail/mail to, erm, use a smart host for itself -- i.e. use a public DNS enabled name ? Also, should I enable MY local computers by enabling SMTP (port 25) to pass through to a/the relevant server?

I guess this comes down to, maybe, additionally having a genuine mail server (a particular Mac + port forwarding to it). I have never explored the ideas of mail between my Macs and how this works with identical accounts... would I need to login to each Mac using a Intranet enabled/using account?

Your thoughts please :)

dgringo 05-01-2007 09:36 AM

Yippee -- I did it (with your help :) )

I knew it must have been something incredibly fundamental!

<beating himself over the head>

I set my router to allowing SMTP through,
I set up my HOSTNAME= to be my dyndns setting,
Mail works,
mail did not ... until I checked my gmail spam folder -- it was there!!!


What say you Darrell, have I _finally_ got all the pieces working?


David Green

PS. It _was_ convoluted, and I failed to remember / track all the separate bits!

dgringo 05-01-2007 12:45 PM

The only thing which I would like to do, but is not necessary, is to figure out how I can get my incoming "mail" operational too -- a complete luxury I suppose.

tw 05-01-2007 03:02 PM

you know, while we're on this topic, there's something I'm not clear on...

I'm not at all used to using shell mail, so pardon my ignorance, but what I'd like to be to do is grab some mail that I just downloaded through a GUI app (thuinderbird in this case, but let's go for the general answer), turn around, and delete it via shell from the server. this is an end run around TB's limited filtering capacity, so I can delete spam from the server immediately - saves me having to digest and recode thunderbird (god bless open source, but still...). can you demystify this process for me a bit?

dgringo 05-03-2007 08:15 AM

Quote:

Originally Posted by tw (Post 376066)
you know, while we're on this topic, there's something I'm not clear on...

[snip]
filtering capacity, so I can delete spam from the server immediately - saves me having to digest and recode thunderbird (god bless open source, but still...). can you demystify this process for me a bit?

Sorry, both myself and Darrell have been remiss in responding. I am bungling into using and programming, generally, OS. Regarding TB, I have no historical experience, so would suggest looking elsewhere OR waiting for Darrell -- he might better responses :/

DarrellGreenwood 05-11-2007 01:51 AM

Quote:

Originally Posted by dgringo (Post 376028)
...have I _finally_ got all the pieces working?

You sure have, congratulations!

Quote:

Originally Posted by dgringo (Post 376028)
The only thing which I would like to do, but is not necessary, is to figure out how I can get my incoming "mail" operational too -- a complete luxury I suppose.

A nice one though. I had SIMS http://tinyurl.com/2zgjs9 and NotifyMail http://www.notifymail.com/ installed in a spare IIci which gave me incoming mail. After my ISP implemented their security policy (http://tinyurl.com/4lx3m and almost entirely to plug Microsoft vulnerabilities ...curses on you Mr. Gates) port 25 was filtered so I lost the luxury.

If your ISP doesn't mess with port 25 you could set the equivalent up fairly easy.

Cheers,

Darrell

DarrellGreenwood 05-11-2007 02:01 AM

Quote:

Originally Posted by tw (Post 376066)
you know, while we're on this topic, there's something I'm not clear on...

I'm not at all used to using shell mail, so pardon my ignorance, but what I'd like to be to do is grab some mail that I just downloaded through a GUI app (thuinderbird in this case, but let's go for the general answer), turn around, and delete it via shell from the server. this is an end run around TB's limited filtering capacity, so I can delete spam from the server immediately - saves me having to digest and recode thunderbird (god bless open source, but still...). can you demystify this process for me a bit?

I think you are unclear with respect to the functions and capabilities of:

1. the osx mail program /usr/bin/mail,

2. the osx smtp mail server /usr/sbin/postfix,

3. and the pop mail server you are downloading your mail from (probably something like pop.yourisp.net).

i.e., you can't do what you want to do.

Cheers,

Darrell

dgringo 05-11-2007 02:30 AM

Surly OS X should totally account for the mail i/o, but as I use British Telecom as my ISP, I better check them blocking 25 too.

tw 05-11-2007 12:12 PM

Quote:

Originally Posted by DarrellGreenwood (Post 378299)
I think you are unclear with respect to the functions and capabilities of:

1. the osx mail program /usr/bin/mail,

2. the osx smtp mail server /usr/sbin/postfix,

3. and the pop mail server you are downloading your mail from (probably something like pop.yourisp.net).

i.e., you can't do what you want to do.

Cheers,

Darrell

lol - thanks dude. I'm aware of my ignorance, but I was hoping to have it relieved, not just pointed out. ;)

tell you what, let's trade - you teach me how to talk to unix, and I'll teach you how to talk to people. <heehehehehe>

DarrellGreenwood 05-11-2007 01:20 PM

Quote:

Originally Posted by tw (Post 378385)
lol - thanks dude. I'm aware of my ignorance, but I was hoping to have it relieved, not just pointed out. ;)

Sorry. I actually spent a bit of time thinking about how to answer your question as gently as possible. If we were talking in person the non-verbal component of our conversation would have allowed you to see that I was trying to be helpful.


Quote:

Originally Posted by tw (Post 378385)
tell you what, let's trade - you teach me how to talk to unix,

'man' is all you need to know.

e.g., referring to my answer earlier, enter into Terminal 'man postfix' and 'man mail'

Quote:

Originally Posted by tw (Post 378385)

and I'll teach you how to talk to people.

Your turn. How should I have answered your question? :)

Cheers,

Darrell

tw 05-11-2007 01:58 PM

Quote:

Originally Posted by DarrellGreenwood (Post 378397)
Sorry. I actually spent a bit of time thinking about how to answer your question as gently as possible. If we were talking in person the non-verbal component of our conversation would have allowed you to see that I was trying to be helpful.

<...>

Your turn. How should I have answered your question? :)l

oh, you didn't do so bad, and I know you were trying to be helpful... :)

it seems to me the most important element in this kind of conversation is listening. usually the person asking the question has a clear visualization of what s/he wants to accomplish, but only a foggy understanding of the capabilities and limitations of the software. then it becomes a matter of piecing out what they see in their head and helping them find some way to implement it (if possible). that's hard in email, because a) many people don't express themselves as well in writing as they do in speech, and b) (as you pointed out) you lose all of the non-verbal cues that help you tune in to what they want - it has to be done entirely in words. for instance, what I want is to coerce my email application to remove junk mail from the pop server, but leave good mail up there for a while. Mail.app can be convinced to do it, sort of (though it has an annoying tendancy to re-download the last message on the server once for every piece of junk that's deleted). Thunderbird can't do it at all (though that issue has popped up on their development lists). I'm looking for loopholes.

what I would have liked for an answer was a short explanation of why unix mail can't do what I want it to do. then I would have learned something, even if it didn't solve my problem. all you told me, though, was that I don't know anything about unix mail, which is something I already knew.

or something like that... :confused:

there's nothing helpful in mail man page (that I knew before I asked), but I'll check out the postfix man and see what it has to say. thanks for that tip.

DarrellGreenwood 05-11-2007 02:38 PM

Quote:

Originally Posted by tw (Post 378410)
... for instance, what I want is to coerce my email application to remove junk mail from the pop server, but leave good mail up there for a while. Mail.app can be convinced to do it, sort of (though it has an annoying tendancy to re-download the last message on the server once for every piece of junk that's deleted).

Interesting. I would not have predicted that offhand. My mail app is Eudora. I have never turned Mail.app on.


Quote:

Originally Posted by tw (Post 378410)
Thunderbird can't do it at all (though that issue has popped up on their development lists). I'm looking for loopholes.

what I would have liked for an answer was a short explanation of why unix mail can't do what I want it to do. then I would have learned something, even if it didn't solve my problem. all you told me, though, was that I don't know anything about unix mail, which is something I already knew.


I was trying to say that I didn't think that Post Office Protocol 3 was capable of doing what you want. But you say you can get Mail.app to do it :confused: so I can't be of much help :)

i.e., from http://www.ietf.org/rfc/rfc1939.txt

"POP3 is not intended to provide extensive manipulation operations of
mail on the server; normally, mail is downloaded and then deleted. A
more advanced (and complex) protocol, IMAP4, is discussed in
[RFC1730]."

Cheers,

Darrell

tw 05-12-2007 10:28 AM

Quote:

Originally Posted by DarrellGreenwood (Post 378419)
I was trying to say that I didn't think that Post Office Protocol 3 was capable of doing what you want. But you say you can get Mail.app to do it :confused: so I can't be of much help :)

oh, Mail.app can do it, but only if you set it up a peculiar way - leave everything in the inbox, sort all mail using smart folders, and then set the advanced Accounts preference "remove copy from server after retrieving a message..." to "when moved from inbox". since the only time anything is removed from the inbox is when I delete it or when it gets marked as junk mail, it works out.

the problem is that it's buggy... it downloads extra copies of valid emails every time it deletes junk mail from the server. occasionally (randomly, as far as I can tell) it deletes all the old messages on the server. pain in the you-know-what...


All times are GMT -5. The time now is 05:51 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.