Deleting Smtp servers in mail

Discussion in 'Mac Help/Tips' started by Rajj, Jun 2, 2003.

  1. Rajj macrumors 6502a

    Rajj

    Joined:
    May 29, 2002
    Location:
    32° 44' N 117° 10' W
    #1
    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:
     
  2. andyduncan macrumors regular

    Joined:
    Jan 21, 2003
    #2
    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.
     
  3. Rajj thread starter macrumors 6502a

    Rajj

    Joined:
    May 29, 2002
    Location:
    32° 44' N 117° 10' W
    #3
    There is no button anywhere, trust me!!
    At any rate, it work!!
    Thanx!!
     
  4. zimv20 macrumors 601

    zimv20

    Joined:
    Jul 18, 2002
    Location:
    toronto
    #4
    1337?

    and what's the number if i'm a vi nut?
     
  5. andyduncan macrumors regular

    Joined:
    Jan 21, 2003
    #5
    wondered how long it would take before someone said something about that. (40 minutes) :)
     
  6. zimv20 macrumors 601

    zimv20

    Joined:
    Jul 18, 2002
    Location:
    toronto
    #6
    and?
     
  7. andyduncan macrumors regular

    Joined:
    Jan 21, 2003
    #7
    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. :)
     
  8. zimv20 macrumors 601

    zimv20

    Joined:
    Jul 18, 2002
    Location:
    toronto
    #8
    i'm wondering what the 1337 number is in reference to.
     
  9. arn macrumors god

    arn

    Staff Member

    Joined:
    Apr 9, 2001
    #9
    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
     
  10. andyduncan macrumors regular

    Joined:
    Jan 21, 2003
    #10
    yeah. was supposed to be a little tounge-in-cheek though. I don't really use that term... really...
     
  11. zimv20 macrumors 601

    zimv20

    Joined:
    Jul 18, 2002
    Location:
    toronto
    #11
    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.

    :)
     
  12. boristhespider macrumors newbie

    Joined:
    Jul 16, 2002
    #12
    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.
     
  13. andyduncan macrumors regular

    Joined:
    Jan 21, 2003
    #13
    see i knew someone would have a better way! heh.
     
  14. Rajj thread starter macrumors 6502a

    Rajj

    Joined:
    May 29, 2002
    Location:
    32° 44' N 117° 10' W
    #14
    Thanx dude, but I like the ?hacker? version better!!! ;) :D
    lololololololololol
     

Share This Page