Mail set-up on server 10.4.8

We just had our web server upgraded from 10.1 to 10.4. The drive was reformated, the server software was installed/configured and we loaded the web sites from a back-up. The web sites are working, ftp is working but we can not get the POP mail working. This should be simple but we have tried everything with no success. There are no errors in the logs, it looks like the incoming emails are being put in a different location then where they should be so none are getting forwarded. My guess is that some config file is wrong but I don't know which file or what to fix. Can anyone give us some advice? Also, is there a good third party reference available? I could not find anything helpful in the manuals.
Workgroup Manager 10.4.4
Server Admin 10.4.7

Hi
I hope this thread is not resolved. Even if it is, this is my solution.
0.1. You must have a domain name pointing to your public IP
0.2. Your router (if you have one) must forward smtp, pop, and imap ports to the private IP adress of the sever
Server Admin
1. You must have DNS enable with your domain name configured. I presume that you know to.
2. Setup your mail service
in General
2.1. Activate POP
2.2. Acivate Imap (if you need)
2.3. Activate SMTP
2.4. Accept incoming mail
2.5. Retain outgoing mail
in filter
2.6. Set up as you need
in advanced->security
2.7. Set up aurhentifaction for smtp and pop.(important for smtp because you can be a spam relay)
in advanced->Hosting
2.8. add your domain name in localhost window
Users admin
3. Go to your users account (mail tab)
3.1 Activate mail
3.2 Choose receipt method.
I've followed this procedure 5 or 6 times and it's working fine every time.
Be carefull. In 10.4.8, something change in Imap service and the send of messages dont work. There is a little corrective to apply (a line to change in a config file but I do not remember what)
Sorry if the words are not exactly the same on you screen. I'm working on a french vs and my english is not very good.
Good luck
Vinc'

Similar Messages

  • The user or users have been added successfully, but there was an error in sending the e-mail message. The server may not be set up correctly to send e-mail. To verify that e-mail is configured correctly, contact your server administrator

    I got this problem when I tried to configure out-going email and add an account to farm administrator group.
    I configure out-going email according to this website http://technet.microsoft.com/en-us/library/cc288949.aspx
    Here are the screen shots.
    The SMTP server and email accounts work out OK when I use Outlook 2010 to test.
    Anyone can help me about it? Thanks.
    Here is the log.
    09/20/2012 09:21:00.36 w3wp.exe (0x1F7C)                      
    0x1138
    SharePoint Foundation         E-Mail                        
    8gsf
    High    
    #160008: The e-mail address 'admin3.sharepoint@domain' contains illegal
    characters. df98555c-612f-4a58-9443-ab6e9a4fcc53
    09/20/2012 09:21:00.36 w3wp.exe (0x1F7C)                      
    0x1138
    SharePoint Foundation         General                      
    8kh7 High    
    Cannot complete this action.  Please try again.
    df98555c-612f-4a58-9443-ab6e9a4fcc53
    09/20/2012 09:21:00.36 w3wp.exe (0x1F7C)                      
    0x1138
    SharePoint Foundation         E-Mail                        
    7946 Critical
    Cannot complete this action.  Please try again.
    df98555c-612f-4a58-9443-ab6e9a4fcc53
    09/20/2012 09:21:00.36 w3wp.exe (0x1F7C)                      
    0x1138
    SharePoint Foundation         Runtime                      
    tkau Unexpected
    Microsoft.SharePoint.SPException: The user or users have been added successfully, but there was an error in sending the e-mail message. The server may not be set up correctly to send e-mail. To verify that e-mail is configured correctly, contact your
    server administrator.    at Microsoft.SharePoint.ApplicationPages.AclInv.SendEmailInvitation(EntityEditor picker, String subject, String message)     at Microsoft.SharePoint.ApplicationPages.AclInv.BtnOK_Click(Object sender, EventArgs e)
        at System.Web.UI.WebControls.Button.OnClick(EventArgs e)     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String
    eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStage...
    df98555c-612f-4a58-9443-ab6e9a4fcc53
    The e-mail address I have tested it for several times and there is no problem.
    Anyone has any clue about this error?

    Hi.
    This I have seen before...
    It can be that the SMTP relay server is configured to only allow certain IP ranges or addresses.
    It can be that the firewall on the SP server does not allow for SMTP traffic (normally 25, for example for Exchange).
    It can be that there is an Antivirus on the SP server(Client AV) that prohobits the Timer service to send email from this server. I have seen MacAfee do this. Needed an policy change.
    If, its the builtin SMTP service you are using, check this link:
    http://blog.sharepointrx.com/2010/11/18/setting-up-the-iis-smtp-server-for-sending-email-from-sharepoint-2010-on-server-2008-r2/
    Check that and try again.
    Regards
    Thomas Balkeståhl - Technical Specialist - SharePoint -
    http://blog.blksthl.com
    Download the SharePoint Branding Project here
    Download the SharePoint 2010 Site Settings Explained here

  • How do I move mail from an old server to a new server?

    I am rebuilding my server. The new server runs on OS X 10.9.4 with Server 3.1.2. The old server ran OS X 10.9.x and Server 3.x (the exact versions are not known).
    Within the folder /Library/Server/Mail, I found the email stores for both systems.  I have gone through each folder and identified the 36 character string that serves to identify the user's mailbox and paired each one to a user id on both systems.  On the old system, there are multiple mailboxes for some users, and I think it is a result of the users being deleted and recreated: perhaps the system identified the identical name and assumed that the user might be different and therefore created a unique 36 character id for the mail system.
    The trick is, I am trying to recover the mail from the old server.
    I have attempted to copy the files which are human readable and formatted for SMTP transmission to the new server under the correct mailbox corresponding to the owning user (see screen shots below). The simple act of copying the files has not made these files visible via the IMAP protocol. I have tried restarting the mail service hoping that the Server app would rebuild whatever indexes need to be built so that the mail can be served via IMAP, and that has not worked either.
    The question is, how do I get the mail from the old server mail boxes into the new server mailboxes?
    This screen shot shows the location of one mail collection at /Library/Server/Mail/Data/mail/[userid].  Mail sits in the "new" folder only for a moment before being processed and put into the "cur" folder.  Copying mail from the old server into the "new" folder produces an empty "new" folder, but one can see the files populate briefly before they are moved into the "cur" folder.
    The next screen shot shows one email opened in TextEdit.  The format should look very familiar.  This is the same format that one would use to send SMTP requests to an SMTP server.  This particular example happens to be an email from a Gmail account to the PediatricHeartCenter.org domain to test the mail system when the old server was set up.  It was sent on 24 Jan 2014 and had text reading "Intended for Mavericks1. -Jared".

    On further research, I have learned that OS X Server sets Dovecot to use the MailDir format.  The email messages can be removed from the folders and put back, and as long as they were present in the folder to begin with (received by Dovecot originally), they reflect in the Mail.app on client computers.  Deleting a file in the "cur" folder causes the file to disappear in Mail.app. Copying the file back into the "cur" folder will cause the file to reappear without any modification of an index file or any other system component, as long as the file was properly formatted by Dovecot to be identifiable to that folder.
    According to Dovecot.org's review of MailDir found here (http://wiki2.dovecot.org/Ma,ilboxFormat/Maildir), the file name can be broken into simple pieces: " [unixtimestamp].[process id].[hostName],S=<message size>,W=<virtual message size>/2,[status tags]".  The original MailDir++ specification requires the string ":2," to appear after the virtual size, but this file naming format is not legal in Mac OS X, so Dovecot is modified by Apple to use "/2," instead.
    The Dovecot's wiki describes inserting new messages as follows:
    Mail delivery
    Qmail's how a message is delivered page suggests to deliver the mail like this:
    Create a unique filename (only "time.pid.host" here, later Maildir spec has been updated to allow more uniqueness identifiers)
    Do stat(tmp/<filename>). If the stat() found a file, wait 2 seconds and go back to step 1.
    Create and write the message to the tmp/<filename>.
    link() it into new/ directory. Although not mentioned here, the link() could again fail if the mail existed in new/ dir. In that case you should probably go back to step 1.
    All this trouble is rather pointless. Only the first step is what really guarantees that the mails won't get overwritten, the rest just sounds nice. Even though they might catch a problem once in a while, they give no guaranteed protection and will just as easily pass duplicate filenames through and overwrite existing mails.
    Step 2 is pointless because there's a race condition between steps 2 and 3. PID/host combination by itself should already guarantee that it never finds such a file. If it does, something's broken and the stat() check won't help since another process might be doing the same thing at the same time, and you end up writing to the same file in tmp/, causing the mail to get corrupted.
    In step 4 the link() would fail if an identical file already existed in the maildir, right? Wrong. The file may already have been moved to cur/ directory, and since it may contain any number of flags by then you can't check with a simple stat() anymore if it exists or not.
    Step 2 was pointed out to be useful if clock had moved backwards. However again this doesn't give any actual safety guarantees, because an identical base filename could already exist in cur/. Besides if the system was just rebooted, the file in tmp/ could probably be even overwritten safely (assuming it wasn't already link()ed to new/).
    So really, all that's important in not getting mails overwritten in your maildir is the step 1: Always create filenames that are guaranteed to be unique. Forget about the 2 second waits and such that the Qmail's man page talks about.
    The process described by the QMail man page referenced above suggests that as long as a file is placed in the "new" folder, that a mail reader can access it.  The mail reader then moves the file to the "cur" folder and "cleans up" the "new" folder.  This is clearly happening in OS X, because the messages are moving from "new" to "cur", but IMAP is still not serving these foreign messages to the remote readers.
    The thought crossed my mind that perhaps it is the fact that the host name does not match, which would cause the failure, however changing the "host" portion of the name from the old-server to the new-server did not fix the issue.  Even with the new server name in the file name, the inserted message fails to appear in client Mail applications.
    Within the file their is header information that still references the old machine. I'd like to not have to change the email files, because this will violate the integrity of the message. Also, this might take a lot of time or incur risks associated with poor automated processing. The header information should not be referenced by Dovecot, because the wiki page describing MailDir notes that neither Dovecot nor Dovecot's implementation of IMAP refers to the messages header information when moving and serving these mail files.
    Unlike when using mbox as mailbox format, where mail headers (for example Status, X-UID, etc.) are used to determine and store meta-data, the mail headers within maildir files are (usually) notused for this purpose by dovecot; neither when mails are created/moved/etc. via IMAP nor when maildirs are placed (e.g. copied or moved in the filesystem) in a mail location (and then "imported" by dovecot). Therefore, it is (usually) not necessary, to strip any such mail headers at the MTA, MDA or LDA (as it is recommended with mbox).
    This paragraph leads me to believe that after the mail box is identified that the content of the file becomes irrelevant to the system which manages. This suggests that we should be able to inject messages into a mailbox and have the system serve them as though they had belonged in that mailbox all along. Yet I have not found a way to do this.

  • The e-mail message could not be sent. Make sure the outgoing e-mail settings for the server are configured correctly

    I have a 2 server SharePoint farm.
    All outgoing emails were working fine.
    I just restarted both servers and now after that none of the emails are being sent. I am using OOB publishing workflow and it shows message:
    The e-mail message could not be sent. Make sure the outgoing e-mail settings for the server are configured correctly.
    Even if I setup Alert on some list, it doesn't send email.
    I have checked that outgoing email setting in CA is defined and like I said it was working fine without problems but after restart it is showing error.
    What could be the cause of this and how to fix it?
    EDIT
    I removed outgoing mail server in CA, added again and restart IIS but still emails from OOB workflow is not being sent. But email from Alerts are being sent. Don't know what to do now.

    This is really weird, It works when an alert is set but workflows doesn't send emails... Can you create a simple 1 Step workflow in SPD to send an email when a specific field is set. See if this sends an email..
    AJ MCTS: SP 2010 Configuration MCSA: Windows 7 If you find this post useful kindly please mark it as an answer :) TY
    I created a test workflow which sends email to user and it is also not sending email. But I am getting email from SharePoint regarding "variation" page changes as well as alerts which I told above.

  • Mail 5 and SMTP server list

    Hi,
    ever since my upgrade to OS X Lion, I've noticed that the usage of the SMTP server list in Mail 5 seems to have changed. In the past, said list contained ALL configured SMTP servers. When configuring e-mail accounts (e.g. MobileMe) you could specify a default SMTP server from the server list and check a checkbox to ONLY use the specified server for outgoing mail of an account.
    In Lion the meaning of this server list seems to have changed and I think I have discovered a bug that prevents me from using only a specific SMTP server with an account.
    For accounts that are supported by Lion and listed under the "Mail, Contacts & Calendars" Preference Pane, Mail 5 seems to always use a default server setting for outgoing mail. For GMail, this default server seems to use SSL. However, for MobileMe the default server is not the service's SSL SMTP server.
    Sending mail on non-SSL ports is a problem for me for two reasons:
    1.) Obviously this a security/privacy issue.
    2.) I'm a student and when logged into my universities network I can't send e-mail on default e-mail ports (25). Our servers block any outgoing e-mail on ports other than SSL/TLS ports.
    So far this shouldn't be a problem, because you should be able to overwrite Mail's default server by configuring another MobileMe SMTP server with SSL in the server list and checking the checkbox depicted in the below screenshot.
    Unfortunately, whenever I select the SSL enabled MobileMe SMTP server, activate the checkbox and save my changes, Mail will revert to the the default SMTP server without SSL immediately. If I delete the default server from the server list, it pops up again after saving the changes. There seem to be just two ways of sending e-mail using a different server than the default one:
    1. Don't check the checkbox and specify the SMTP server for each e-mail you want to send.
    2. Send using the default server. If sending the mail fails (because I am in my university's network), select the SSL SMTP server in the trouble-shooting popup.
    Option one is annoying. Option two still bears the security/privacy problem and is annoying, because it takes ages for Mail to accept that a server does not seem to work.
    There seems to be no way of fixing this behavior and I have it on both iMac and my Macbook Air. Is this a bug? Do you have any suggestions for a fix?
    Thanks a lot,
    Felix

    Felix,
    I agree, I think it is a bug. My wife is experiencing the exact same issue on her MacBook after upgrading to Lion.
    I submitted Mail feedback tonight to Apple. I hope they get this fixed pronto. My wife prefers Mail to the web interface or using her iPhone for mail. Thanks for explaining the issue.

  • Can't Send Mail with Same Outgoing Server

    I have 2 Roadrunner accounts that use the same outgoing smtp server. In order for me to send email (receiving POP email is not a problem), I have to set the outgoing server for port 25, no SSL and no authentication. I can get one of the accounts to work. But, when I try to set up the 2nd roadrunner account with the same settings on the same outgoing server, I get an error from OSX mail telling me the following:
    "Could not save the changes
    The servers marked with alert icons are in conflict and cannot be saved. Two servers cannot share the same address and authentication settings. Resolve the conflicts and try again."
    Can someone help me figure out how to get around this? I'd really like to send mail from my accounts.
    Thanks!

    Venom51 wrote:
    I have 2 Roadrunner accounts that use the same outgoing smtp server. In order for me to send email (receiving POP email is not a problem), I have to set the outgoing server for port 25, no SSL and no authentication. I can get one of the accounts to work. But, when I try to set up the 2nd roadrunner account with the same settings on the same outgoing server, I get an error from OSX mail telling me the following:
    "Could not save the changes
    The servers marked with alert icons are in conflict and cannot be saved. Two servers cannot share the same address and authentication settings. Resolve the conflicts and try again."
    Welcome to Apple's discussion groups.
    Perhaps I'm missing something, but can't you have both accounts use the same SMTP server? If you're still trying to create the second account using the account creation wizard, I'd try giving it dummy SMTP information, then change it to use the real SMTP server once the account is created.

  • Undeliverable mail by MS Exchange server

    I'm the dark horse trying to use Mail on an Exchange server at work. I spent yesterday getting the connection together, and it's all working fine except for this one thing.
    Everything I send bounces back to me as undeliverable with the following message:
    Your message did not reach some or all of the intended recipients.
    Subject: Re:test
    Sent: 6/26/2007 9:34 AM
    The following recipient(s) could not be reached:
      Legitimate internal email addy on 6/26/2007 9:34 AM
      The e-mail account does not exist at the organization this message was sent to. Check the e-mail address, or contact the recipient directly to find out the correct address.
      server01.DOMAIN.local
    I rarely see this notification in Mail--it shows up in my Outlook Web Access inbox. The messages I'm sending (the ones that are supposedly undeliverable) do reach their addressees, but they go straight into the user's Exchange server's automatically created "SpamEmail" folder.
    I feel like something of a hero having navigated the pitfalls involved in setting this up so far, so I don't want to give up. Also, my option is to use Entourage, which was drastically slowing my quad core Mac Pro every time it checked to "Now update" somesuch thing or another--which was always, no matter how I had the "schedules" scheduled. I don't want to go back. (And webmail is o.k. for remote access, but not for daily office work.)
    Thanks
    Core Duo iMac 24", G4 PB, Mac Pro   Mac OS X (10.4.10)   Airport Extreme network with a Cranky Ethernet drive
    Core Duo iMac 24", G4 PB, Quad Core Mac Pro   Mac OS X (10.4.10)   Airport Extreme network with a Cranky Ethernet drive

    Without seeing the full header of one of those messages, its nearly impossible to say what's wrong and even with the full header, its not an easy issue to diagnose without more info. Your best option is to report this problem to your Exchange server's administrator and ask him or her to look at the Exchange server's log files for any issues.

  • Mail aliases in Lion Server

    I have two servers that are both running mail.  I'd like to be able to have them back each other up.  If an email comes into server 1 and server 2 (where account is) is not available, I'd like Server 1 to hold that mail until Server 2 comes back on line.
    Previously, in OSX Server, in Workgroup Manager, you could specify a forwarding address for a user and this worked great. In Lion Server, there is no such provision.
    So, I edited the /etc/aliases file to add an alias to each such user. I run newaliases and restart the mail server.  If I ( with an account on a given server) send an email from mail.app through that server, it properly forwards it to the right server.  If there is an incoming email from somewhere else on the internet, then it won't forward it to the correct server but simply rejects it.
    I suppose I could go through and create a complete set of duplicate accounts and then go to the web client and specify the redirect through a filter but that would be a total pain.
    What am I doing wrong? 
    J.

    Hi
    "Previously, in OSX Server, in Workgroup Manager, you could specify a forwarding address for a user and this worked great. In Lion Server, there is no such provision."
    If I've understood you correctly that's not strictly true. There's a number of ways you can do this. You could consider using WebMail or the command line:
    http://support.apple.com/kb/HT5032
    HTH?
    Tony

  • HT1277 unable to choose imap type of account in my e-mail set up

    Unable to choose imap as my account type in Mail set-up, only POP is available to choose from. Tried to set up another account in mail set-up and system won't recognise my e-mail provider password yet service provider confirmed password is good.

    I have found a very simple solution to this matter from another post to the forum.
    When you first set-up your Mail, when the system ask you for your name,e-mail address then your password then you press your "Option" key at the same time as pressing the "continue" button, then you are prompted to choose your input manually.You must know your Incoming and outgoing server names but the nice thing is, my God you can choose a IMAP set up finally !

  • Hello i am unable to get into mail set up (it closes instantly) other set up functions y, hello i am unable to get into mail set up (it closes instantly) other set up functions y

    whenever i try to get into mail ,contacts set up , the window closes automatically and instantly. the same applies for contacts, whenever i would click on it it does not open the appication bu get back to general menu
    thanks for your help and tip to get out of this mess;
    by the way i managed at first to set up an email pop in so receive email into "MAIL" but not able to send out and therefore would really need to access mail setting up 

    I personally suggest the new Drobo FS. Since it has an iTunes server built in and you can use any size sata hard drive in it it is better and a NAS that has to use the same size drives.

  • Can't Send Mail Via HughesNet SMTP Server

    After installing 10.5 I find that I can receive mail from my ISP (HughesNet) but I can't send mail through the smtp server. I've tried every setting possible and even duplicated the settings off my wife's 10.4.10 iMac and I still can't send mail. All I see is that the smtp service is "Offline."
    Fortunately, I have a .Mac account so I can send mail using that smtp server. But I'd like to be abel to use my HughesNet server.
    Does anyone have any suggestions?

    My mom uses RoadRunner by Time Warner. She was able to receive email using Leopard and Mail but not send. SMTP server was the big problem like everyone else here experienced. We finally were able to get it to work using many ideas here. What we did:
    1) Delete com.apple.mail.plist from the User/Library/Preferences folder (BACK UP YOUR EMAIL FIRST)
    2) Open Mail and create a new account but disable the automatic set-up feature, put your info in manually.
    3) Uncheck " Use only this server" from the outgoing mail
    4) Under the Advanced tab on Mail Prefs "port set to 25", Uncheck "SSL" box, and uncheck "Use Authentication"
    5) Now hit Create
    It took Mail about 20 minutes to contact the SMTP server, but it did and now I can send and receive Mail without any problems on her computer.
    Bad Apple...stop criticizing MS and Vista when your own house is not in order yet. Hope this helps someone out there.....

  • My iPad just recently started a message saying"cannot get mail" the connection to server failed. It won't bring up my yahoo mail.....how do I fix??

    My iPad is bringing up a message saying "cannot get mail"the connection to server failed. It won't bring up my yahoo mail but does bring up my other mail...how do I fix?

    Other users have been reporting Yahoo mail problems that are not iPad problems. Might be something to try on these links.
    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Try a Reset - iPad How-Tos  http://ipod.about.com/lr/ipad_how-tos/903396/1/
    Or this - Delete the account in Mail and then set it up again.
     Cheers, Tom

  • Mailing XML to Workflow Server - and merge

    I have a form created in Designer 7.0 - that I have posted on our web-site. Therefore it is a stand alone PDF file. I have it set it to submit the XML data via e-mail to our Workflow Server 6.2. When the server received the e-mail... it initiates a new Workflow and makes the appropriate assignment based on the rules.
    However, it is not merging the XML data into the PDF. Maybe this should be posted in the Workflow forum... Has anyone else run into this? Am I missing a programming step? I assumed that the merge would be inherent in the Workflow system.
    Thanks for the advice.
    jra

    Hi Daniel and thank you in advance for availability.
    The code is good for me ... to do something like this:
          lv_null_string = cl_abap_conv_in_ce => UCCP ('0000 ').
         LOOP AT lt_stream ASSIGNING <fs>.
           IF sy-tabix = lines (lt_stream). "only the last row must not be absolutely length
              FIND FIRST OCCURRENCE OF lv_null_string IN <fs>
                    IN BYTE MODE MATCH OFFSET lv_null_length.
              TRANSFER <fs> TO e_filename LENGTH lv_null_length.
           ELSE.
              TRANSFER <fs> TO e_filename.
           ENDIF.
         ENDLOOP.
         CLOSE DATASET e_filename.
    What do you think?
    Then I need your opinion, yesterday I turned the file, which was initially in BINARY MODE, in TEXT MODE, using:
    * Before the function
          CALL FUNCTION 'SCMS_BINARY_TO_STRING'
            EXPORTING
              input_length = lv_length
            IMPORTING
              text_buffer = lv_xml_string
            TABLES
              binary_tab = lt_stream
    * And then writing
         OPEN DATASET FOR OUTPUT IN TEXT MODE ENCODING UTF-8.
         TRANSFER lv_xml_string TO e_filename.
         CLOSE DATASET e_filename.
    Do you think this workaround will produce an equally correct file of XML or is it more correct (formally) write a binary file?
    I ask this because I don't understand why we are the only ones to have this kind of problem around ... there is no other case in SCN.

  • I have messed up iCloud mail setting when trying to fix a yahoo issue. I need the settings to send mail from iCloud

    Can someone please send me step by step what to set my icloud outgoing mail setting to. It continues to say that the server is no longer connected. I tried adding an outgoing mail server as smtp.mail.me.com and it won't connect. I messed it up when I played around with settings due to Yahoo not working this morning. Yahoo is now working and icloud is not. Thanks for your help.

    These are the manual settings: http://support.apple.com/kb/HT4864, but if you are signed into iCloud on your Mac it should automatically contigure your iCloud email account with the correct settings.  If it isn't working, go to Settings>iCloud, uncheck Mail, restart your Mac, then check Mail again.  That will remove, then recreate your iCloud email account.

  • Database Mail Fails For SQL Server Agent Jobs / Maintenace plans - Why ?

    Database Mail Fails For SQL Server Agent Jobs / Maintenace plans - Why ?
    This has been a very common question I have seen relatedt to Database mail and I thought will post here so if you run into this issue, it could be due to one of the following and also have mentioned below how to get around them. Bottom line is datbase mail works fine with SQL Agent jobs and maintenace plans in SP1 on all platforms.
    1. If you see this on 64 bit platform and on RTM build, this is a bug that is addressed in SP1.
    2. If you see the below error message, it is known issue and this is because of design that requires SQL Agent to restart, if SQL Agent was started before enabling databasemail and setting a new profile. We are evaluating to change this design of not requiring to restart agent for our future release.
    Re: 264] An attempt was made to send an email when no email session has been established
    This problem will go away after restarting SQL Server Agent in this case. Thanks,
    Gops Dwarak, MSFT

    This may be related to the fact that DBMail, by default, shuts itself down after 10 minutes of inactivty.  If the mail service isn't running, you won't be able to queue up any mail messages.
    There may be a built-in mechanism for addressing this problem, but I found that I can detect this situation and start the mail listener before sending db mail.  I use the following in stored procs that need to send email.
    You could increase the inactivity period for db mail shutdown from 600 seconds to some larger value.  It might not make sense to do so, since shutting it down releases its resources back to teh system; if your SQL server only sneds mail infrequently, it might be better to start the mail listener on demand.  Someone with more experience than I might want to add their two cents' worth.  :-)
    /* Check the mail engine. Start the service if is is stopped         */
    /* -- the DB Mail engine shuts down after 10 minutes (of inactivity) */
    /* -- this setting can be changed, but we probably don't need to.    */
    DECLARE @rc INT
    IF NOT EXISTS (SELECT * FROM msdb.sys.service_queues
                   WHERE name = N'ExternalMailQueue' AND is_receive_enabled = 1)
        EXEC @rc = msdb.dbo.sysmail_start_sp
        -- TODO: add handling and logging for any engine start issues

Maybe you are looking for

  • 2 Versions Acrobat X Pro 10 in Win7 Programs since update (10.0, 10.1.11) -- and newer is 7.14 GB (!)

    Win7 Control Panel/Programs and Features lists two Acrobat versions: Acrobat X Pro - 6.06 MB - v.10.0 Adobe Acrobat X Pro - English, Francais, ... - 7.14 GB - 10.1.11 QUESTIONS: Should I uninstall the v.10.0? Plus, 7.14 GB? Can this be right?

  • Using cursor in a string

    Hi everybody, In a stored procedure, I a trying to use the cursor in a string. My purpose in adding the where clause. For example: CREATE OR REPLACE PROCEDURE AirportAppendixReport(whereClause varchar2) IS cursor cFac IS      select tblArpt.fkObjectI

  • No server was available to process request. Please try again later. (Error:

    In version BO XI R3.1 SP4, we face an error intermittently while trying to save large deski reports viewed in HTML format to pdf . It displays errors "No server was available to process request. Please try again later. (Error: RFC 00101)"  " The same

  • Folder Size Notifier

    Hi I am after a method, applescript or otherwise that will monitor the size of a specfic folder and alert me when it becomes a certain size, any ideas? Cheers Rob

  • LDAP problems

    Hi, I'm sorry for crossposting this question to three different groups, but I have security and personalization related problem with commerce server, so I couldn't decide where to post... I'm designing LDAP-schema for a company piloting Commerce Serv