Mail problem

Discussion in 'General' started by vaio1, Sep 25, 2007.

  1. vaio1

    vaio1 Member

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please replace server1.example.com with the (existing) hostname of your server in the file /etc/postfix/main.cf and /etc/mailname
     
  3. vaio1

    vaio1 Member

    Have I replace with the real registered domain name?

    The file /etc/mailname doesn't exist.

    Thanks
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, it must be a real registered domain name, but it should be a subdomain like server1.yourdomain.com.
     
  5. vaio1

    vaio1 Member

    The file /etc/mailname doesn't exist.

    thanks
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Simply run
    Code:
    postconf -e 'myorigin = server1.yourdomain.com'
    and restart Postfix.
     
  7. vaio1

    vaio1 Member

    When I am sending an email to [email protected] hosted on the server the returned email has these parameters:

    Code:
    Return-Path: <[email protected]>
    X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on
    	server1.example.com
    X-Spam-Level: 
    X-Spam-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_00,TVD_SPACE_RATIO
    	autolearn=no version=3.2.1
    X-Original-To: [email protected]
    Delivered-To: [email protected]
    Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.180])
    	by server1.mycorrectdomain.com (Postfix) with ESMTP id E7C7D1430936
    	for <[email protected]>; Wed, 17 Oct 2007 09:01:28 +0200 (CEST)
    Received: by wa-out-1112.google.com with SMTP id v27so2678537wah
            for <[email protected]>; Wed, 17 Oct 2007 00:01:23 -0700 (PDT)
    DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
            d=gmail.com; s=beta;
            h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition;
            bh=g3zLYH4xKxcPrHOD18z9YfpQcnk/GaJedfustWU5uGs=;
            b=EKFh3MRAbpFOnWn5KL78BULYzszaOLSQH/htaGDEmqzOUVJ5p7L96Yo3Blm9disD3Ub8k4dqRTFvZa4Z4gKrnyCc26AI5q+xjkYMibmcsLKgL7v01D16Pc3wbyiGZQpUuBweHj66rwysIqdDjYvb9zeuFKuVoDyqK7ZbrZRYQeE=
    DomainKey-Signature: a=rsa-sha1; c=nofws;
            d=gmail.com; s=beta;
            h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition;
            b=tZU08p4Ym0cHq18oiuQNr0KQifqIXe9VNeBYINP2SLaTqi481ww5aP9q+pN3oP4v+j8USMBGiwyF+Yjx1xxxHfKhd4ovrGe6jk3tQXDOX4nvFlWxTtBlLPXuskq61d3X9Gt4WNL7rLufRyPJ55pZvziwyrTYrYCdku3kpj0aqIk=
    Received: by 10.115.58.1 with SMTP id l1mr5752121wak.1192604482919;
            Wed, 17 Oct 2007 00:01:22 -0700 (PDT)
    Received: by 10.114.137.17 with HTTP; Wed, 17 Oct 2007 00:01:22 -0700 (PDT)
    Message-ID: <[email protected]>
    Date: Wed, 17 Oct 2007 09:01:22 +0200
    From: "Test" <[email protected]>
    To:  [email protected]
    Subject: test
    MIME-Version: 1.0
    Content-Type: text/plain; charset=ISO-8859-1
    Content-Transfer-Encoding: 7bit
    Content-Disposition: inline
    X-Virus-Status: No
    X-Virus-Checker-Version: clamassassin 1.2.4 with clamscan / ClamAV 0.91.1/4542/Tue Oct 16 22:31:56 2007
    X-Antivirus: AVG for E-mail 7.5.488 [269.14.13/1074]
    
    SpamAssassin 3.2.1 reads the old value (server1.example.com).

    Thanks
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

    hostname

    and

    hostname -f
     
  9. vaio1

    vaio1 Member

    The Output is:

    # hostname
    server1.example.com

    # hostname -f
    server1.example.com

    Thanks
     

Share This Page