13 Replies Latest reply: Dec 13, 2007 4:47 AM by pterobyte
elbeardo77 Level 1 Level 1 (0 points)
I have been trying to set up Mail Server, I have the internal mail working fine... but can't get the external relay working.

This is the error message that comes up 'Name service error for name=smtp1.tnz.mail.vip.aue.yahoo.com type=MX: Malformed or unexpected name server reply'


Can anyone point me in the right direction at least!

G5, Mac OS X (10.5)
  • pterobyte Level 6 Level 6 (10,910 points)
    With this amount of information it is impossible to help you.

    Start by by opening terminal and posting the unmodified output of:
    postconf -n

    Alex
  • elbeardo77 Level 1 Level 1 (0 points)
    Macserver:~ admin$ postconf -n
    alias_maps = hash:/etc/aliases,hash:/var/mailman/data/aliases
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    content_filter = smtp-amavis:[127.0.0.1]:10024
    daemon_directory = /usr/libexec/postfix
    debugpeerlevel = 2
    enableserveroptions = yes
    html_directory = no
    inet_interfaces = all
    mail_owner = _postfix
    mailboxsizelimit = 0
    mailbox_transport = cyrus
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/share/man
    messagesizelimit = 31457280
    mydestination = $myhostname,localhost.$mydomain,localhost
    mydomain = Feast.co.nz
    mydomain_fallback = localhost
    myhostname = macserver.private
    mynetworks = 127.0.0.0/8,192.168.1.0/24
    newaliases_path = /usr/bin/newaliases
    ownerrequestspecial = no
    queue_directory = /private/var/spool/postfix
    readme_directory = /usr/share/doc/postfix
    recipient_delimiter = +
    relayhost = send.xtra.co.nz
    sample_directory = /usr/share/doc/postfix/examples
    sendmail_path = /usr/sbin/sendmail
    setgid_group = _postdrop
    smtpsasl_authenable = yes
    smtpsasl_passwordmaps = hash:/etc/postfix/sasl/passwd
    smtpdenforcetls = no
    smtpdpw_server_securityoptions = plain,gssapi,cram-md5
    smtpdrecipientrestrictions = permitsasl_authenticated,permit_mynetworks,reject_unauthdestination,permit
    smtpdsasl_authenable = yes
    smtpdtls_certfile = /etc/certificates/Default.crt
    smtpdtls_keyfile = /etc/certificates/Default.key
    smtpdtlsloglevel = 0
    smtpduse_pwserver = yes
    smtpdusetls = no
    unknownlocal_recipient_rejectcode = 550
    Macserver:~ admin$
  • pterobyte Level 6 Level 6 (10,910 points)
    relayhost = send.xtra.co.nz

    Are you authorised to have your mail server send through "send.xtra.co.nz"? With or without authentication?

    myhostname = macserver.private

    Your host name should be a fully qualified name.

    The log entry you show in your first post is not necessarily relevant. Do you see similar log entries no matter who you send to?
  • elbeardo77 Level 1 Level 1 (0 points)
    Yes I do have authorisation to send to xtra, with authentication on.

    What would be a fully qualified name?

    I haven't had any external mail work yet, only internal. I'm still quite new to the server side of things.
  • pterobyte Level 6 Level 6 (10,910 points)
    Your domain name is Feast.co.nz so your host name should probably be somehost.feast.co.nz or simply feast.co.nz as well. Make sure it has DNS reverse resolution in place.

    Coming back to your issue, try and send a couple of mails and post the relevant log entries.
  • elbeardo77 Level 1 Level 1 (0 points)
    I'm also getting this error when sending...

    Dec 12 09:02:38 Macserver postfix/postfix-script[84438]: fatal: the Postfix mail system is not running
  • pterobyte Level 6 Level 6 (10,910 points)
    Single log lines are useless. This could just as well be an entry while you were restarting mail services.
    Always make sure log entries are in a context.
    If the mail server wasn't running at all, you wouldn't even be able to send internal mail.
  • elbeardo77 Level 1 Level 1 (0 points)
    Do I need a fixed IP address to relay mail to an ISP?
  • pterobyte Level 6 Level 6 (10,910 points)
    No. But it certainly is better to run a mail server of a static IP.
  • elbeardo77 Level 1 Level 1 (0 points)
    Sorry about my lack of knowledge, but where do I change DNS reverse resolution?
  • pterobyte Level 6 Level 6 (10,910 points)
    I would assume your ISP is handling your DNS, so ask them to do it.
  • elbeardo77 Level 1 Level 1 (0 points)
    Have used the settings recommended to me by my isp, but still no external outgoing mail!

    alias_maps = hash:/etc/aliases,hash:/var/mailman/data/aliases
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    content_filter = smtp-amavis:[127.0.0.1]:10024
    daemon_directory = /usr/libexec/postfix
    debugpeerlevel = 2
    enableserveroptions = yes
    html_directory = no
    inet_interfaces = all
    mail_owner = _postfix
    mailboxsizelimit = 0
    mailbox_transport = cyrus
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/share/man
    messagesizelimit = 31457280
    mydestination = $myhostname,localhost.$mydomain,localhost
    mydomain = Feast.co.nz
    mydomain_fallback = localhost
    myhostname = Feast.co.nz
    mynetworks = 127.0.0.0/8,192.168.1.0/24
    newaliases_path = /usr/bin/newaliases
    ownerrequestspecial = no
    queue_directory = /private/var/spool/postfix
    readme_directory = /usr/share/doc/postfix
    recipient_delimiter = +
    relayhost = mail.feast.co.nz
    sample_directory = /usr/share/doc/postfix/examples
    sendmail_path = /usr/sbin/sendmail
    setgid_group = _postdrop
    smtpsasl_authenable = yes
    smtpsasl_passwordmaps = hash:/etc/postfix/sasl/passwd
    smtpdenforcetls = no
    smtpdpw_server_securityoptions = plain,gssapi,cram-md5
    smtpdrecipientrestrictions = permitsasl_authenticated,permit_mynetworks,reject_unauthdestination,permit
    smtpdsasl_authenable = yes
    smtpdtls_certfile = /etc/certificates/Default.crt
    smtpdtls_keyfile = /etc/certificates/Default.key
    smtpdtlsloglevel = 0
    smtpduse_pwserver = yes
    smtpdusetls = no
    unknownlocal_recipient_rejectcode = 550
    Macserver:~ admin$

    What am I doing wrong?
  • pterobyte Level 6 Level 6 (10,910 points)
    Please post relevant log entries.