Sendmail/Postfix problem

Hi
We are having troubles sending email from Sendmail/Postfix on a new Mac Mini/10.5.2. The mail log continually shows "Operation timed out (port 25)" errors for every outbound mail. There is no firewall between the server and the Internet, so nothing should be blocking SMTP. We've tried sending both from php and directly from the command line. All mails get deferred with the same error.
Any thoughts/help gladly appreciated.
Cheers
Rob

Hi, please disregard this. After a long discussion with my ISP they admitted that they were blocking port 25 (even though my service specifically doesn't have blocking!). Sigh

Similar Messages

  • Sendmail/postfix doesn't always deliver emails

    Hi,
    I'm running 10.3.5 and have some processes there that send emails via sendmail when they need to (build notification emails). I am not customizing the sendmail/postfix configuration at all. Most of the time things work great but once in a while the following happens:
    1 - I notice that an email that should have been sent out has not been received
    2 - log into the box as root
    3 - give sendmail a kick by typing the following
    % sendmail
    garbage garbage
    ^d
    4 - watch as the email arrives (late, of course :-)).
    In /var/log/system.log and /var/log/mail./log I see these error messages whose date/time stamp is right about the time the email should have been sent:
    Dec 19 18:35:10 is-build20 postfix/postfix-script: stopping the Postfix mail system
    Dec 19 18:35:10 is-build20 postfix/master[14433]: terminating on signal 15
    Dec 19 18:35:50 is-build20 postfix/postfix-script: starting the Postfix mail system
    Dec 19 18:35:50 is-build20 postfix/postqueue[17470]: fatal: Cannot flush mail queue - mail system is down
    Dec 19 18:35:51 is-build20 postfix/master[17468]: daemon started -- version 2.0.10
    I have users complaning about not receiving emails so as a workaround I'm setting up a cron job to kick sendmail once an hour like so:
    "postfix start; sleep 5; postfix flush"
    Anyone have ideas on what is happening and how to remedy the situation?
    TIA
    dual 1.33 Ghz G4   Mac OS X (10.3.5)  

    Kyle--
    It kind of sounds like something I ran into a while back. the easiest way to fix it is to open the /etc/hostconfig file and change the line:
    MAILSERVER=-AUTOMATIC-to
    MAILSERVER=-YES-and restarting your computer.
    If that line is "AUTOMATIC", when you start up, a process called postfix-watch is started and it stops and starts Postfix. I had this problem on a web server and the symptoms were very much as you described.
    I'd suggest just setting up Postfix to send email. That's what I have done, and I no longer have that problem. I've use the directions here. Or your can use Postfix Enabler, which is a GUI version. If you set up Postfix, just make sure postfix-watch isn't running anymore...
    charlie

  • Gnu mailman Postfix Problem

    I have a working configuration of Postfix, MySQL using virtual domains. I want to set up mailman. I have created a new domain called lists.wilkesley.org for the purpose, that will only handle mailman emails. I have installed mailman, but am having trouble getting postfix to deliver mail to mailman lists. The Postfix error is::
    an 24 13:20:33 wilkesley postfix/smtpd[24049]: NOQUEUE: reject: RCPT from mail-ww0-f51.google.com[74.125.82.51]: 450 4.1.1 <[email protected]>: Recipient address rejected: User unknown in relay recipient table; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-ww0-f51.google.com>
    My mm_cfg.py is:
    MTA = 'Postfix'
    DEFAULT_EMAIL_HOST = 'lists.wilkesley.org'
    DEFAULT_URL_HOST = 'lists.wilkesley.org'
    VIRTUAL_HOSTS.clear()
    add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
    POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.wilkesley.org']
    DEFAULT_URL_PATTERN = 'http://%s/mailman/'
    PUBLIC_ARCHIVE_URL = 'http://%(hostname)s/archives/%(listname)s'
    In master.cf I have:
    mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user}
    The relevant bits of main.cf are:
    # mailman
    relay_domains = $mydestination, lists.wilkesley.org
    relay_recipient_maps = hash:/var/lib/mailman/data/virtual-mailman
    transport_maps = hash:/etc/postfix/transport
    mailman_destination_recipient_limit = 1
    # Virtual Mailbox Domain Settings
    virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf, hash:/var/lib/mailman/data/virtual-mailman
    virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
    virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
    I think I am missing something obvious and simple, but can't see what it is!
    [Edited to insert code tags as sugested].
    Last edited by geekinthesticks (2012-01-24 13:54:52)

    geekinthesticks wrote:I think I am missing something obvious and simple, but can't see what it is!
    They're called code tags
    I can't help with the problem directly, but those who can will probably be more inclined to do so if you include file contents of command output in [ code ] ... [ /code ] tags to keep it clean and readable.

  • Postfix problem

    Hi All,
    i had some doubt regarding postfix operation in java.Please check the following code. and pls give me the suggestion
    class incrementTest1
         public static void main(String[] args)
              int i=0;
              i++;
              i++;
              i++;
              System.out.println("iii->"+i);
    this will print iii->3
    The other one is
    class incrementTest
         public static void main(String[] args)
              int i=0;
              i=i++;
              i=i++;
              i=i++;
              System.out.println("iii->"+i);
    this will print iii->0
    if i am assigned the postfix to some variable it will not incremented. why it is happening is this is java problem.
    Please clear me
    thanks in advance

    http://forum.java.sun.com/thread.jsp?forum=31&thread=303846

  • Sendmail SMTP problem...

    Hi, i have Solaris 8 installed on Ultra 10... When i try to start sendmail service, in /var/adm/messages message appear that say: "Feb 9 14:06:21 consolasun sendmail[6028]: [ID 702911 mail.error] makeconnection: service "smtp" unknown"... And syslog can't send messages to outlook account...
    anybody can help me ?... What should i do ?
    Thanks...

    I haven't seen that error before. You might want to check to see if you have the following entry in your /etc/system file though.
    smtp 25/tcp mail

  • Sendmail Installation Problem

    Hi! I have currently installed send mail to solaris 8 and I keep getting the said error. What seems be the problem? could any one help me with this one.
    : [ID 801593 mail.crit] j6FMk6Ul001551: SYSERR(root): Cannot exec /usr/lib/mail.local: Permission denied
    Thanks!

    whats the permissions on your /usr/lib/mail.local ?
    (ls -l /usr/lib/mail.local)
    The user permissions should be read/executable for
    all users:
    chmod 555 /usr/lib/mail.localeventhough i have use the command that you have given me i still recieve tha same error as above

  • PHP Sendmail Small Problem

    Hi there,
    I'm using a PHP send mail script to email the form results
    over to me. For the message, I want several fields to be in the
    actual message. I've seen that you simply need to insert the '.'
    However this simply seems to put the additional fields on the end
    of the previous. I want it as a separate paragraph as it were. The
    code is below:

    On Sat, 10 Jan 2009 15:25:20 +0000 (UTC), "Coxdabd"
    <[email protected]> wrote:
    > <?php
    > $name = $_REQUEST['name'] ;
    > $message = $_REQUEST['telephone'] ;
    > $message .= $_REQUEST['required'] ;
    > $message .= $_REQUEST['date'] ;
    > $message .= $_REQUEST['time'] ;
    >
    > mail( "[email protected]", "Booking Request",
    > $message, "From: $email" );
    > header( "Location:
    http://www.me.com" );
    > ?>
    Try it this way:
    <?php
    $name = $_REQUEST['name'] ;
    $message = sprintf("Telephone: %s\n",$_REQUEST['telephone']);
    $message .= sprintf("Required: %s\n",$_REQUEST['required']);
    $message .= sprintf("Date: %s\n",$_REQUEST['date']);
    $message .= sprintf("Time: %s\n",$_REQUEST['time']);
    mail( "[email protected]", "Booking Request",
    $message, "From: $email" );
    header( "Location:
    http://www.me.com" );
    ?>
    Currenly your form is very insecure. You should see some of
    these:
    http://www.google.com/search?q=php+mail+header+injection
    Gary

  • Some chinese words problem in Javamail via MS Exchange Server

    Dear All
    I have a Javamail problem.
    When I use Javamail to send email via MS Exchange Server, there are some chinese words will become corrupt code and not all chinese words. i.e ("��", The code in big5 is "F9 D6").
    If I use Javamail + Linux SendMail, this problem will not happen. All chinese words will display correctly by the same program. Anybody else know why and how to resolve it?
    The following code is part of my program.
    String mailHost = "192.168.1.255";
    String subject = "TESTING WORD ��";
    String mailBody = "TESTING WORD ��";
    Properties props = new Properties();
    props.put("mail.smtp.host", mailHost);
    Session session = Session.getDefaultInstance(props, null);
    MimeMessage msg = new MimeMessage(session);
    msg.setFrom(from);
    msg.setRecipients(Message.RecipientType.TO, addressTO);
    msg.setSubject("=?big5?B?" + enc.encode(subject.getBytes()) +"?=");
    msg.setContent(mailBody, "text/html; charset=big5");
    Transport.send(msg);

    clearly looks like an MS Exchange problem to me. May be they are not encoding the 8 bit data properly? So, you are using MS Exchange to send it and which client do you use to read the mail sent?

  • [SOLVED] Postfix: activity not being logged

    I installed and configured postfix/cyrus and then sent myself a couple of test messges.  The messages don't show up anywhere, so I ran
    journalctl -u postfix -f
    to see where the problem was, sent myself another message from another machine and got ... nothing.  The only thing displayed are the Start/Stop service messages.
    Does systemd not log service activity for postfix?  I was planning on installing syslog-ng (or rsyslog) anyway, as I need to have message log persistence across reboots, but I thought that this stuff would at least be logged while it's happening.
    Last edited by pgoetz (2015-01-29 11:58:10)

    Never mind, I'm an idiot.  My ISP was blocking port 25 traffic (even though I explicitly asked them if they blocked port 25 when I set up the account, and they responded no).
    So as to not be a complete waste of a human life, here are some simple debugging steps for someone who happens to stumble upon this post.
    From an external host, try telneting to port 25 before doing anything else. 
    $ telnet pgoetz.com 25
    If this hangs, then postfix is either not listening on port 25 or the traffic is being blocked.  At this point, check to make sure that your ISP isn't blocking port 25 traffic.
    If running a firewall, check your firewall rules:
    $ iptables -L
    You should see something that looks like this:
    ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
      If you don't see this, your firewall is blocking traffic to port 25.  See the iptables documentation for fixing this.
    If the firewall is OK, next check to see if postfix is actually listening on the port:
    ss -nlpt | grep 25
      You should see something that looks like this:
    LISTEN 0 100 *:25 *:*
    users:(("smtpd",pid=20261,fd=6),("master",pid=19480,fd=13))
    If you don't see this, there is a good chance that either postfix is not running or inet_interfaces is not configured properly in /etc/postfix/main.cf.  The default value for inet_interfaces is
    inet_interfaces = all
    .  Unless you absolutely know what you're doing, you should leave this set at the default; i.e. don't set this parameter in /etc/postfix/main.cf at all.  To check if postscript is running,
    systemctl status postfix
    or
    ps auxw | grep postfix
    .  If you don't see a line that looks like this:
    root 19480 0.0 0.0 12432 2136 ? Ss 05:58 0:00 /usr/lib/postfix/master -w
    postfix isn't running.
    Finally,
    journalctl -u postfix -f
    is your friend.  Use it early and often when debugging postfix problems.  It will reveal missing files (e.g.
    Jan 16 07:03:29 ibis postfix/local[20277]: error: open database /etc/postfix/aliases.db: No such file or directory
    and anything else that postfix is unhappy about.
    Happy postfixing!

  • 10.4 mail command

    Hi, I just set up a new Tiger Xserve. When I go to mail myself from the command line, the mail goes through without a hiccup. The problem is that I don't recieve the mail and our mail server admin says nothing went through there either. No errors or anything to indicate a problem. I run two 10.3 servers and can use the mail command just fine, no extra config needed.
    Did something change with 10.4?

    Ok, I enabled the mail server and set the smtp to relay to our smtp mail server. Now the command works. Does anyone know why the mail server has to be enabled on 10.4 to make this work? On 10.3, the mail server does not need to be enabled to send mail from the server. I thought the whole idea of using sendmail/postfix was so you could avoid having an smtp server running...?

  • Possible to check total incoming/outgoing size per domain?

    Hello :),
    Is it possible to see the top incoming or outgoing emails by total size?
    The intention is to determine which domain or emails may be eating the network bandwidth.
    Also, is there a Report to check the Incoming email graph/statistics a listener or specific domain receives? I tried Monitor > Incoming Mail, with the domain options but it does not show them. As we have several clients in the same Appliance we need a Report for the email that only client1.com or client2.com received.
    Thank you in advance.
    Hugo

    My unoffical answer is using Mail Flow Central in the unoffical way.
    login the MFC mysql
    select rcpt_domain,sum(message_size) as total_size from recipients r, messages m
    where r.sid = m.sid
    and r.mid = m.mid
    and timestamp > unix_timestamp(date_sub(now(), interval 1 day))
    group by rcpt_domain order by total_size desc limit 0,20
    This will give the top 20 total message size processed by receipent domains of last 1 day.
    This executes just forever if you want more days or add the transfer_id as a condition..(i left it out delibrately).
    There are alternatives,
    1.
    In my experience, your incoming total size statistics can, alternatively, be generated by your ultimate message store server (sendmail/postfix/exchange).
    Your outoging total size is a little difficult if not using the above tweaked method.
    2.
    scp the mail_logs out regularly, look for "MID XXXXXX ready YYYY bytes for "
    Do some mining scripts.
    Chris

  • Mail Piling Up In Queue

    Seem to be having a few problems and I'm not sure if they're separate issues or connected ones. Seems I need to get my "mail" house in order, but don't know where to start; I'm pretty new server admin. Had the mail server sending and receiving mail, but it just stopped one day. Not sure if it was an update I made, or something I didn't update and should be doing.
    1. need to update ClamAV? currently running 0.88.5, recommended 0.88.7
    2. amavisd problem?
    Dec 26 19:08:09 my.server.com /usr/bin/amavisd[18292]: starting. /usr/bin/amavisd at my.server.com amavisd-new-2.2.0 (20041102), Unicode aware
    Dec 26 19:08:09 my.server.com /usr/bin/amavisd[18292]: user=, EUID: 0 (0); group=, EGID: 0 0 (0 0)
    Dec 26 19:08:09 my.server.com /usr/bin/amavisd[18292]: Perl version 5.008006
    Dec 26 19:08:09 my.server.com /usr/bin/amavisd[18292]: Net::Server: 2006/12/26-19:08:09 Couldn't open pid file "/var/amavis/amavisd.pid" [No such file or directory].\n\n at line 268 in file /System/Library/Perl/Extras/5.8.6/Net/Server.pm
    Dec 26 19:08:09 my.server.com /usr/bin/amavisd[18292]: Net::Server: 2006/12/26-19:08:09 Server closing!
    3. postfix problem? SMTP log:
    Dec 26 20:47:18 server postfix/qmgr[18228]: F07D886C68: to=<[email protected]>, relay=none, delay=334187, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection refused)
    Dec 26 20:47:42 server postfix/smtp[19389]: connect to mx.futurequest.net[69.5.6.174]: Operation timed out (port 25)
    Some not sure why the local host 127.0.0.1 rejects mail to a user I've set up in Workgroup Manager. (First log entry above)
    I've got some dozens of messages that aren't getting through to me that I would like to read, but can't get delivered.
    Don't get much spam yet, but the second log entry is a typical one. How do I prevent spam from building up in the queue, since most are sent to users/email accounts that aren't real? All I've done so far is in: Mail > Settings > Relay "Refuse all messages from these hosts and networks".
    4. Have server set-up as an open directory master, but something must be funny, since I keep getting this message:
    Dec 26 20:44:11 my.server.com kadmin.local[19356](info): No dictionary file specified, continuing without one.
    For some reason, access for users I've defined in Workgroup Manager sequentially get dropped. It's easy to re-click "access account" for each user, but this isn't a solution!
    Any help would be much appreciated, since I feel like I'm shooting in the dark on many of these issues. If nothing else, please point me in the right direction or post a link so I can study and learn.
    Thank you =)

    Hi Dale,
    Thanks for the post. If I did delete or change something related to amavisd-new (since amavisd doesn't appear to be there), how would I get it back?
    Might also be helpful for you all to know that I did install HenWen months ago, but didn't have much luck getting the software to work as desired. I haven't been using it, since it (esp. snort) did weird things to my system (using 100% processing power at times for no particular reason that I could identify). Perhaps the software tricked something out? Wish I knew. For more basic overview of HenWen see: http://seiryu.home.comcast.net/henwen.html
    sigh
    Here are the results of the unix commands listed:
    One:
    ls -lsa /private/var
    total 0
    0 drwxr-xr-x 30 root wheel 1020 Dec 24 23:05 .
    0 drwxr-xr-x 6 root wheel 204 Dec 24 23:05 ..
    0 drwxr-xr-x 5 daemon wheel 170 Oct 22 2005 at
    0 drwxr-x--- 2 root admin 68 Oct 19 2005 audit
    0 drwx------ 3 root wheel 102 Aug 10 03:15 backups
    0 drwxr-xr-x 6 clamav clamav 204 Dec 28 19:23 clamav
    0 drwxr-xr-x 3 root wheel 102 Aug 22 2005 cron
    0 drwxr-xr-x 31 root wheel 1054 Dec 28 19:13 db
    0 drwxr-xr-x 2 root sys 68 Aug 22 2005 empty
    0 drwxr-xr-x 16 cyrusima mail 544 Dec 28 19:23 imap
    0 drwxr-x--- 6 jabber jabber 204 Aug 22 2005 jabber
    0 drwxr-xr-x 3 root wheel 102 Sep 29 14:22 launchd
    0 drwxr-xr-x 101 root wheel 3434 Dec 28 03:15 log
    0 drwxrwxr-x 2 root mail 68 Aug 22 2005 mail
    0 drwxrwsr-x 9 root mailman 306 Aug 22 2005 mailman
    0 drwxr-xr-x 2 root wheel 68 Aug 22 2005 msgs
    0 drwxr-xr-x 9 root wheel 306 Dec 26 18:27 named
    0 drwxr-xr-x 2 root wheel 68 Aug 22 2005 netboot
    0 drwxr-x--- 7 root wheel 238 Dec 27 19:12 root
    0 drwxrwxr-x 55 root daemon 1870 Dec 28 19:12 run
    0 drwxr-xr-x 2 root wheel 68 Aug 22 2005 rwho
    0 drwxr-xr-x 18 root wheel 612 Sep 19 20:44 samba
    0 drwxr-xr-x 30 root wheel 1020 Aug 9 21:53 servermgrd
    0 drwxr-xr-x 8 root wheel 272 Aug 5 19:31 spool
    0 drwxr-xr-x 2 root wheel 68 Aug 24 2005 swupd
    0 drwxrwxrwt 15 root wheel 510 Dec 24 23:05 tmp
    0 drwxr-x--- 2 clamav clamav 68 Aug 22 2005 virusmails
    0 drwxr-xr-x 4 root wheel 136 Dec 24 23:05 vm
    0 drwxr-xr-x 4 root wheel 136 Oct 20 2005 xgrid
    0 drwxr-xr-x 4 root wheel 136 Oct 19 2005 yp
    Two:
    ls -lsa /private/var/amavis
    ls: /private/var/amavis: No such file or directory
    (certainly could be the problem—above)
    Three:
    ls -lsa /private/var/clamav
    total 16368
    0 drwxr-xr-x 6 clamav clamav 204 Dec 28 19:23 .
    0 drwxr-xr-x 30 root wheel 1020 Dec 24 23:05 ..
    0 drwx------ 4 clamav clamav 136 Oct 2 01:00 .spamassassin
    2832 -rw-r--r-- 1 clamav clamav 1447910 Dec 28 19:07 daily.cvd
    8 -rw-rw---- 1 clamav clamav 4 Dec 28 19:23 freshclam.pid
    13528 -rw-r--r-- 1 clamav clamav 6924820 Dec 26 19:07 main.cvd
    Best wishes and thanks

  • Configure LAMP stack to use internal mail relay without....

    Does anybody know of a way i can configure my new LAMP stack to use the companys internal mail relay without having to implement postfix, or sendmail?  I did already try to implement send mail recently, and its very confusing to me since i have never set up a mail server, and i tried to implement postfix, SOHO i think was the wiki i used, and that never got done either.  It seems incredibly cryptic to someone who even has tons of server experience, just not the email portion.  Maybe the wikis are just written for those who have more experience in making SSL certs, and being more versed in MX records, and DNS for email specific things.  etc... 
    Since i have not successfully set up a mail server thus far, i dont have enough general mailer / experience to understand the wikis on setting up Sendmail, etc...   
    My company asked me if i could just use their internal mail relay instead.  I would like to know if i still need to set up sendmail to allow PHP mail() function to send out mail, or if theres some configuration somewhere that i can adjust so it can use the existing internal mail relays. 
    Note, the only thing im trying to achieve here is to get my apps to send out emails for login password management, and error logs.

    In my experience an SMTP server is preferable to sendmail/postfix as it is far more portable and robust... (in a web environment) many webhosts, for example, pay no heed to the configuration of sendmail - so code that runs on one host fails on another. PHP mail() can be leveraged to use any backend you like but this typically requires root access (or at least permissions beyond those offered on typical hosting services), and, as said above, does not allow for any useful level of error reporting.
    Swiftmailer is (generally) my weapon of choice - unless the particular project has additional PEAR dependencies/requirements that mean it makes sense to stay within the same codebase... not that it (PEAR) is always that consistent anyhow
    I can't really offer much in the way of help with cron integration as that is not a route I have taken - it should think it would be pretty trivial (sic )to implement as you build your script... swiftmailer has some pretty neat "live address" checking routines - have a dig through the docs
    Last edited by satanselbow (2013-12-17 09:49:13)

  • Email times displayed as UTC

    Hi,
    I'm having a weird display issue in Mail. All emails show in the list with times that are UTC instead of PDT. My date and time and international system preferences are correctly set to display Pacific Daylight time (Los Angeles) in standard American date format. Apple Mail is the only program that isn't obeying that setting.
    To make this more interesting, I've configured Mail in a non-standard way. Since there's no obvious way to lock out access to Mail other than to create a separate user account (which doesn't meet our needs for this system), I created an encrypted sparse disk image and moved ~/Library/Mail/ into that disk image. I then created a symbolic link to point ~/Library/Mail/ to the disk image volume.
    This work around is working out perfectly and provides me a way to secure access to email without creating a unique user account. The only funky thing appears to be this date display issue.
    I know that the disk image implementation is non-standard and probably not recommended, but it's the only way I could figure out how to secure access to my mail within a shared single user account (which I need for other reasons).
    Any ideas on how to correct this date display issue?
    Thank you,
    Todd
    iMac Mac OS X (10.4.10)
      Mac OS X (10.4.10)  

    Following is the full header for another sample message. I have other accounts on this server that I check on other computers using Apple Mail and time displays properly, so I doubt it has anything to do with the email server. This is a POP account and the server runs some flavor of BSD running sendmail/postfix or something similar. While the sample below was sent from MS Exchange, the date display issue applies to the display of all messages.
    The following message appears with Date Received: "Today 3:35 AM".
    The Date Sent column displays: "Yesterday 8:35 PM"
    The date sent is correctly showing the message time for our time zone. For some reason, date received is showing messages at GMT.
    Thanks again for taking a look at this.
    Todd
    Return-Path: <[email protected]>
    X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on x.net
    X-Spam-Level:
    X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=ham
    version=3.1.3
    Received: from p03c11m003.symantecmail.net (mxl144v243.mxlogic.net [208.65.144.243])
    by x.net (8.13.6.20060614/8.13.1) with ESMTP id l6H3Ztm4095850
    for <[email protected]>; Tue, 17 Jul 2007 03:35:56 GMT
    Received: from unknown [64.168.126.9] (EHLO nbmailg.irell.com)
    by p03c11m003.symantecmail.net (mxl_mta-2.14.0-16)
    with ESMTP id c193c964.275209136.8973.p03c11m003.symantecmail.net (envelope-from <[email protected]>);
    Mon, 16 Jul 2007 21:35:56 -0600 (MDT)
    X-WSS-ID: 0JLB0P0-03-3NN-01
    Received: from ccexch2k01.imnt.irell.net (unknown [128.100.1.242]) by nbmailg.irell.com (Tumbleweed
    MailGate) with ESMTP id 279B7100692C0 for <[email protected]>; Mon, 16 Jul 2007
    20:36:36 -0700 (PDT)
    X-MimeOLE: Produced By Microsoft Exchange V6.5
    Content-class: urn:content-classes:message
    MIME-Version: 1.0
    Content-Type: text/plain;
    charset=us-ascii
    Subject: RE: Queen Bee Waxing
    Date: Mon, 16 Jul 2007 20:35:54 -0700
    Message-ID: <[email protected]>
    In-Reply-To: <[email protected]>
    X-MS-Has-Attach:
    X-MS-TNEF-Correlator:
    Thread-Topic: 1234
    Thread-Index: AcfH0xjxzwFUuPXmRfO1k1JK4W4zNwAT/IMQ
    From: "fn, ln" <[email protected]>
    To: "fn1 ln1" <[email protected]>
    X-Spam: [F=0.5000000000; BMI=0.500(none); SC=none]
    X-MAIL-FROM: <[email protected]>
    X-SOURCE-IP: [64.168.126.9]
    X-Brightmail-Tracker: AAAAAA==
    Content-Transfer-Encoding: 8bit
    X-MIME-Autoconverted: from quoted-printable to 8bit by x.net id l6H3Ztm4095850
    Status:

  • Monitoring mail queue

    One of my applications uses the HTMLDB_MAIL API extensively to send out status change notifications, reminder emails, etc.
    It just does HTMLDB_MAIL.SEND() and forgets about it.
    If my SMTP server is down, there is some network glitch, or whatever, the users don't get their emails and causes a lot of confusion.
    Does anyone have any ideas on how to monitor the HTML DB mail queue to ensure that it is properly flushing the mails out as it should?
    Thanks

    You could setup a job which monitored the mail queue -
    jes@SPDB1> desc htmldb_mail_queue;
    Name                                                                                                              Null?    Type
    ID                                                                                                                NOT NULL NUMBER
    MAIL_TO                                                                                                                    VARCHAR2(2000)
    MAIL_FROM                                                                                                                  VARCHAR2(2000)
    MAIL_SUBJ                                                                                                                  VARCHAR2(2000)
    MAIL_CC                                                                                                                    VARCHAR2(2000)
    MAIL_BCC                                                                                                                   VARCHAR2(2000)
    MAIL_BODY                                                                                                                  CLOB
    MAIL_BODY_HTML                                                                                                             CLOB
    LAST_UPDATED_BY                                                                                                            VARCHAR2(255)
    LAST_UPDATED_ON                                                                                                            DATE
    jes@SPDB1> select count(*) from htmldb_mail_queue;
      COUNT(*)
             0Personally, I call htmldb_mail.push_queue to push the mails to a mail server (Sendmail/Postfix etc), it's then the mail servers "responsibility" to deliver the mails. I monitor the mail server queues/bounces/deliveries/accepts etc using a mixture of Perl and Shell scripts.

Maybe you are looking for