Deleting SMTP Servers from Mail.app in Mac OS X?
jesse12345 asks: "Here's probably an easy one for you Unix masters. I travel a fair amount and use Mail in OS X. I'm always using lots of outgoing mail servers. What I can't figure out is how to delete outdated ones. There seems to be no GUI for this within the Mail.app. Is there some way to do this in UNIX?"
Its VERY easily done within the GUI of Mail.app in Panther. In the accounts section of preferences there's a "Outgoing mail server" drop down menu that has "Edit Server List" as one of the options that allows you to remove an SMTP server. I'm not sure if this is the same in Jag but I'd imagine so. Hardly seems like a story to me.
-1 (Troll) is antihammer
Try: /Applications/AppleScript/Example\ Scripts/Mail\ Scripts/Manage\ SMTP\ Servers.scpt
Seemed to work for me OK.
Edit the file "com.apple.mail.plist" in ~/Library/Preferences. There is a key in the XML called DeliveryAccounts (just search for it in your favorite text editor). Immediately beneath it, there is an array with tags. Just remove the whole ... </dict> section that corresponds to the SMTP server and you should be all set. Probably should close Mail before doing this. Maybe make a backup of your preference file too, just in case. ;)
~moofbong
If 'con' is the opposite of 'pro', what is the opposite of 'progress'?
Why not use sendmail (or Postfix in Panther)? That way you never have to manage your SMTP servers and can just use one all the time.
-You may license this sig for only $6.99.
Open your favorite text editor (or the plist editor included with the OS X dev tools), and have a go at:
~/Library/Preferences/com.apple.mail.plist
In this file, there is a key labeled "DeliveryAccounts". This is where all your SMTP account information is kept. You should be able to edit/delete any account from there.
There is a means of doing this through AppleScript as well, but I don't remember how that works, so I'll have to leave that as an exercise for the reader.
I've had this same problem, and it really pissed me off for a while.
Fortunately, Panther seems to have fixed this - in account prefs, the SMTP server dropdown has added a "Edit Servers" Option. If you're still in Jaguar, however, I believe you can kill servers by editing ~/Library/Preferences/com.apple.mail.plist. I managed this once in Jaguar, but I'm too lazy to try to figure out which entries to trash now. I'm pretty sure it's in there somewhere, though.
A Minesweeper clone that doesn't suck
for jaguar users
I find it amazing that I submit articles about stuff somebody might care about, and somebody else submits a question than could proably be easily answered on groups.google.com, and it gets posted. Wow. A simple search would have eliminated the need for this submission:
Newsgroup post
While we're on the subject of mail.app annoyances, does anybody know how to get mail to permanently accept SSL certificates in 10.3? I looked around macosxhints.com, but none of those suggestions seemed to work.
Thanks.....
"Quoting famous computer scientists out of context is the root of all evil (or at least most of it) in programming." - K
It was not possible from within the Jaguar GUI. (I submitted a bug report about it to Apple, and am glad to see that they fixed it.)
The easiest way to remove servers is to edit the Mail preferences file. Open ~/Library/Preferences/com.apple.mail.plist (either in Property List Editor--if you have the developer tools installed--or any text editor) and find the entry "Delivery Accounts". Delete any you don't want.
Here's how you delete your SMTP server in Debian: type 'apt-get remove exim'. I believe that is the specific answer to your ill-considered question.
In Panther Mail, there is an action (from the little gear pulldown menu) called manage SMTP servers. Triggers an Applescript to delete unused servers
harmonious design
Edit:
~/Library/Preferences/com.apple.mail.plist
And take out the <dict> entries that matches the unused entries...
<PRE>
<key>DeliveryAccounts</key>
<array>
<dict>
<key>AccountType</key>
<string>SMTPAccount</string>
<key>Hostname</key>
<string>mail.tbs.co.za</string>
  ; <key>ShouldUseAuthentication</key>
  ; <string>NO</string>
</dict>
</array>
</PRE>
Here is a direct (probably dirty) way to remove smtp servers from the list. Go to the Preferences directory in your home. Open com.apple.mail.plist in property list editor. The subtree under the DeliveryAccounts entry has the list of all the SMTP servers. Delete the ones you don't like.
Go to the folder "../Applications/AppleScript/Example Scripts/Mail Scripts/"
There you'll find "Manage SMTP Servers.scpt".
Double-click it and you'll get a nice little window with all SMTP servers you don't use and a button to delete them.
Cheers,
I think, therefore I am...I think.
On the subject of Mail.app... .ssh, .bash_history.
I use IMAP mail on my server with about 10 folders. These work OK, but I am also presented with a list of hidden system folders like
In thunderbird you can hide folders that start with a '.', or match public_html.
How do you do this in Mail.app ?
Will
per mere, per terras
It's not possiable w/ Mail.app as far as I know, but my solution to this was to change where UW IMAPd uses for imap mail. It works fine, my home folder doesn't get messy, and I don't get junk. I'm too lazy to look up the correct line, but there is an article on Stepwise about it; it's undewr the Pre-Mac OS X10.1 section. I just recommend you put it in ~/.mail instead of Library/Mailboxs as the article says
This signature was left intentionally blank.
Evidently the chimps permitted this question. Is /. a support site?
In /Library/Scripts/ Apple has a folder full of Mail AppleScripts, one of which allows you to manage SMTP servers, "Manage SMTP Servers.scpt". It basically allows you to delete any SMTP server from the list that is not currently connected to a Mail Account.
You can easily add them to the Menu Bar by going to the /Applications/AppleScript/ folder and draging the AppleScript menu onto the menu bar. This will give you a menu with all the folders in /Library/Scripts/ and ~/Library/Scripts/ in it, allowing you to easily run any AppleScripts you put in these folders. Under Panther, /Applications/ApplScript/ now has AppleScripts to add and remove this menu.
You can move the right side menu items around by command-clicking and dragging the items into the order you wish.