.localdomain showing in email headers

My virtualmin server's email to AOL is being rejected. I suspect it is because the MTA is showing as @kermit.localdomain rather than what it should be: kermit.avenue.org

How/where can I change the localdomain setting to be avenue.org? Is this a webmin setting? postfix? virtual server setting?

>Return-Path: <>
>X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on kermit
>X-Spam-Level:
>X-Spam-Status: No, score=0.3 required=5.0 tests=AWL,NO_RELAYS autolearn=ham
>         version=3.2.5
>X-Original-To: spool@avenue.org
>Delivered-To: spool@kermit.localdomain
>Received: by kermit.localdomain (Postfix)
>         id 8ECEC62902CC; Sun,  2 Aug 2009 13:38:29 -0400 (EDT)
>Date: Sun,  2 Aug 2009 13:38:29 -0400 (EDT)
>From: MAILER-DAEMON@kermit.localdomain (Mail Delivery System)
>Subject: Undelivered Mail Returned to Sender
>To: spool@avenue.org
>Auto-Submitted: auto-replied
>MIME-Version: 1.0
>Content-Type: multipart/report; report-type=delivery-status;
>         boundary="6251262902F4.1249234709/kermit.localdomain"
>Message-Id: <20090802173829.8ECEC62902CC@kermit.localdomain>
>
>This is the mail system at host kermit.localdomain.
>
>I'm sorry to have to inform you that your message could not
>be delivered to one or more recipients. It's attached below.
>
>For further assistance, please send mail to <postmaster>
>
>If you do so, please include this problem report. You can
>delete your own text from the attached returned message.
>
>                    The mail system
>
><Unikorn64@aol.com>: host mailin-02.mx.aol.com[64.12.138.120] said: 421-:
>     (RLY:CH)  http://postmaster.info.aol.com/errors/554rlych.html 421 SERVICE
>     NOT AVAILABLE (in reply to end of DATA command)
>
>Reporting-MTA: dns; kermit.localdomain
>X-Postfix-Queue-ID: 6251262902F4
>X-Postfix-Sender: rfc822; spool@avenue.org
>Arrival-Date: Tue, 28 Jul 2009 12:55:56 -0400 (EDT)
>
>Final-Recipient: rfc822; Unikorn64@aol.com
>Original-Recipient: rfc822;Unikorn64@aol.com
>Action: failed
>Status: 4.0.0
>Remote-MTA: dns; mailin-02.mx.aol.com
>Diagnostic-Code: smtp; 421-:  (RLY:CH)
>     http://postmaster.info.aol.com/errors/554rlych.html 421 SERVICE NOT
>     AVAILABLE
>
>Received: from coordinator.avenue.org (unknown [10.0.8.144])
>         by kermit.localdomain (Postfix) with ESMTP id 6251262902F4
>         for <Unikorn64@aol.com>; Tue, 28 Jul 2009 12:55:56 -0400 (EDT)
>X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9
>Date: Tue, 28 Jul 2009 12:58:32 -0400
>To: Unikorn64@aol.com
>From: Stella Pool <spool@avenue.org>
>Subject: Poolville
>Mime-Version: 1.0
>Content-Type: text/plain; charset="us-ascii"; format=flowed
>Message-Id: <20090728165556.6251262902F4@kermit.localdomain>
Status: 
Active

Comments

Howdy -- what is the output of these commands:

  1. hostname

  2. cat /etc/hosts

And can you attach your /etc/postfix/main.cf file to this issue report?

Thanks!

[root@kermit ~]# hostname
kermit
[root@kermit ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               kermit localhost.localdomain localhost
10.0.8.53       kermit kermit.avenue.org

::1             localhost6.localdomain6 localhost6
10.0.8.5        monticello monticello.avenue.org

I'm folowing this because I have a similar issue, in my case the host name is in the FQDN. Is tha the same thing... or do I need to make a new issue?

This is the mail system at host ossc-web-01.ossc.be.
 
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
 
For further assistance, please send mail to <postmaster>
 
 
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
 
                   The mail system
 
 host smtp-telenet.telenet-ops.be[195.130.137.67] said:
    550 5.1.0 <ossc@ossc-web-01.ossc.be> domain not found (in reply to MAIL
    FROM command)

Thanks, Johnny

Johnny - in your case, you need to make sure that the ossc-web-01.ossc.be host exists in DNS. This may mean adding it to the ossc.be domain..

Hrm, try editing /etc/postfix/main.cf, and setting:

myhostname = kermit.avenue.org

And then restart Postfix:

/etc/init.d/postfix restart

HI: I have the same problem as Johnny. The return-path in all outgoing mails from the the site are :

root@sls-jf4p26.dca3.superbservers.com

Where ' root' is the login name of my account, and ' sls-j4p26' I guess is the machine name or the name picked by the person running my nameserver? I have seen settings for this string in the ZOne edit area , and even see a field to change the email , and have tried changing them, but it did not seem to take effect, but I now realize I ignored the TTL and did not wait the default 10 hours TTL to see if it propogated before I changed it back. Is this correctable in the DNS zone settings, or do I need to alter files using ssh?

The name "sls-j4p26" was probably chosen by whoever installed your Operating System.

You can change the hostname in Webmin -> Networking Configuration -> Hostname.

However, whatever hostname you use, you'll want to make sure you have a DNS entry for it created in your "superbservers.com" Virtual Server.

You'll also want to make sure your ISP is using the reverse DNS you desire.

Thanks for the reply. According to my 'sysop' who is running the nameserver for my domain - he persists this is only correctable at the PHP code level, or by subscribing to an additional mail server. I have never been so deeply involved in DNS before, so there is a learning curve for me here, and I appreciate the patience.

I am using Vitrualmin 3.77 and do not see 'Networking Configuration' Under webadmin. I am attaching a screenshot for you to see.

Howdy -- to be able to make changes to the hostname of your server, you'd need to be logged in as the Master Admin, which is typically the user named "root.

As a non-root user, the Networking options wouldn't be displayed.