Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Rajj

macrumors 6502a
Original poster
May 29, 2002
692
0
32° 44' N 117° 10' W
How in the hell do you delete the SMTP servers in mail?:mad:
I accidentally made too many servers.

I have looked everywhere in the system, but I cannot find a way!!
Any suggestions?
:confused:
 
I don't know if there is a button you can click to get rid of them. but here's a little more difficult way. (actually two)

This information is stored in the com.apple.mail.plist file in your ~home/Library/Preferences folder.
First thing to do, either way is to quit Mail.app and back up this file. Just copy it to the desktop or something. Now:

Way # 1:
If you have the developer tools installed, double-click the com.apple.mail.plist file in your ~home/Library/Preferences folder. That will bring up the Plist editor which will display a nested list of property/value pairs.
Click the widget next to 'root' to expand it, then click the widget next to 'DeliveryAccounts'

that will open a numbered list of accounts, you will have to click the widget next to each of the accounts to see which one they are.

With the number of the account you want to remove selected, click the delete button. repeat for all the accounts you want to remove. save the file and restart mail.

Way #2:
You DON'T have dev tools installed, or you love XML. That's fine, this way isn't much harder.
open TextEdit (or emacs if you are 1337) and then file: open the com.apple.mail.plist file. scroll down (or do a 'find' for your mail server's address) until you find what looks like the following:

Code:
<key>DeliveryAccounts</key>
	<array>
		<dict>
			<key>AccountType</key>
			<string>SMTPAccount</string>
			<key>Hostname</key>
			<string>smtp.yourmail.com</string>
		</dict>
                <dict>
			<key>AccountType</key>
			<string>SMTPAccount</string>
			<key>Hostname</key>
			<string>smtp.yourOthermail.com</string>
		</dict>
        </array>

ok, this is pretty easy to understand, even if you don't know xml. there is an Array called DeliveryAccounts, in it are dictionary entrys for each server, select the server(s) you want to delete, starting with the <dict> tag and ending with the </dict> tag. and hit delete.
save and relaunch mail.

of course. someone will probably post a message right after this saying "oh yeah, theres a button in this tab called..." and i'll look like a jacka$$. but whatever. Worked for me.
 
Originally posted by andyduncan
I don't know if there is a button you can click to get rid of them. but here's a little more difficult way. (actually two)

This information is stored in the com.apple.mail.plist file in your ~home/Library/Preferences folder.
First thing to do, either way is to quit Mail.app and back up this file. Just copy it to the desktop or something. Now:

Way # 1:
If you have the developer tools installed, double-click the com.apple.mail.plist file in your ~home/Library/Preferences folder. That will bring up the Plist editor which will display a nested list of property/value pairs.
Click the widget next to 'root' to expand it, then click the widget next to 'DeliveryAccounts'

that will open a numbered list of accounts, you will have to click the widget next to each of the accounts to see which one they are.

With the number of the account you want to remove selected, click the delete button. repeat for all the accounts you want to remove. save the file and restart mail.

Way #2:
You DON'T have dev tools installed, or you love XML. That's fine, this way isn't much harder.
open TextEdit (or emacs if you are 1337) and then file: open the com.apple.mail.plist file. scroll down (or do a 'find' for your mail server's address) until you find what looks like the following:

Code:
<key>DeliveryAccounts</key>
	<array>
		<dict>
			<key>AccountType</key>
			<string>SMTPAccount</string>
			<key>Hostname</key>
			<string>smtp.yourmail.com</string>
		</dict>
                <dict>
			<key>AccountType</key>
			<string>SMTPAccount</string>
			<key>Hostname</key>
			<string>smtp.yourOthermail.com</string>
		</dict>
        </array>

ok, this is pretty easy to understand, even if you don't know xml. there is an Array called DeliveryAccounts, in it are dictionary entrys for each server, select the server(s) you want to delete, starting with the <dict> tag and ending with the </dict> tag. and hit delete.
save and relaunch mail.

of course. someone will probably post a message right after this saying "oh yeah, theres a button in this tab called..." and i'll look like a jacka$$. but whatever. Worked for me.

There is no button anywhere, trust me!!
At any rate, it work!!
Thanx!!
 
Originally posted by zimv20
1337?

and what's the number if i'm a vi nut?

wondered how long it would take before someone said something about that. (40 minutes) :)
 
and what? ;-)
i'm not about to get into a vi/emacs war. Especially since the only reason i use emacs is because when I was learning UNIX, the book I had said "pick one" and even though I read both chapters, I remember more of emac's commands.

as far as a number goes, pick one. :)
 
Originally posted by zimv20
i'm wondering what the 1337 number is in reference to.

I'm assuming you aren't kidding... in which case...

1337 is hacker-slang for 'Elite'... as in cool, hip, etc...

(if you look at the numbers backwards/squinty-eyed, it should looke like 'leet')

arn
 
Originally posted by arn
1337 is hacker-slang for 'Elite'... as in cool, hip, etc...

yeah. was supposed to be a little tounge-in-cheek though. I don't really use that term... really...
 
Originally posted by arn
I'm assuming you aren't kidding... in which case...

no, i wasn't kidding. my vi skills never got me laid, nor did they save me here.

no, that's ok, i'll see myself out.

:)
 
Rajj,

Apple provides a script to manage SMTP servers in mail. Try this......

harddrive>library>scripts>mail scripts>manage smtp servers.sctp

Run the script and you can edit the servers.

While you are in the mail scripts folder, check out the crazy message text script for a laugh.
 
Originally posted by boristhespider
Rajj,

Apple provides a script to manage SMTP servers in mail. Try this......

harddrive>library>scripts>mail scripts>manage smtp servers.sctp

Run the script and you can edit the servers.

While you are in the mail scripts folder, check out the crazy message text script for a laugh.

Thanx dude, but I like the ?hacker? version better!!! ;) :D
lololololololololol
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.