Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I am using the Perl Mail module on my NT for sending out mail and Unix sendmail for my Perl on unix mail scripts. They both worked great until we changed server DNS. Now, when I run my mail scripts it says the mail has been sent (with no error messages) but the mail doesnt make it. We are using Outlook 2000 and if I send mail from Outlook it works fine. Please advise what can be done or checked to get my mail module and unix sendmail to work again.

Replies are listed 'Best First'.
Re: DNS change now mail not sending
by phydeauxarff (Priest) on Aug 07, 2003 at 17:19 UTC
    When you say "changed server DNS" do you mean you made a change to the DNS record or changed the DNS resolvers your server is pointing to?

    If you changed the MX record for the zone involved, it could take time to propigate based on the TTL in the record and your NT server could be sending to the wrong MX host.

    Double check your name resolution with nslookup via the command line and make sure that the server is pointing to the correct resolvers and they are returning the MX record you expect.

Re: DNS change now mail not sending
by bobn (Chaplain) on Aug 07, 2003 at 19:54 UTC

    The problem statement needs much clarification. In particular:

    1. "the Perl Mail module" doesn't tell us much. Specifically which module are you using?
    2. Where are you sending from and to?
    3. What are you using for an SMTP server? the modules typically work by connecting to an SMTP server, often defaulting to localhost. What's used in your case?
    4. As another asked, what changed in DNS?
    We like to help, but we're not mind readers.

    --Bob Niederman, http://bob-n.com
Re: DNS change now mail not sending
by Limbic~Region (Chancellor) on Aug 07, 2003 at 16:47 UTC
    Anonymous Monk,
    While mostly OT (off topic), I am guessing that you will find your mail messages queued up waiting to be delivered. From a command prompt, type mailq
    $ mailq
    This probably just requires Sendmail to be stopped and started.

    Cheers - L~R

      Thanks the mail queue says it is empty. Anything I can do like that for my Windows 2000?
        Anonymous Monk,
        You said you were using Outlook 2000 to send mail. That is likely incorrect. The client typically doesn't send the mail, the server does. Typically that server is Exchange. If this is the case and it is Exchange 2K - I can't help. In Exchange 5.5, you would go into connections, pull up your IMC (Internet Mail Connector) and check the queue on the queue tab. To "recycle" services, you would go into services and stop and start the IMC. Personally I would reboot the box.

        If you are not using Exchange and the Outlook is a client to something else, you will need to specify more information.

        Cheers - L~R