Koozali.org: home of the SME Server

system mail gets double domain (home.home)

Offline commanda

  • *
  • 30
  • +0/-0
    • http://swafl.org (not smeserver)
system mail gets double domain (home.home)
« on: August 15, 2005, 01:45:25 PM »
Sme-server 6.0.1-01 set up as private server & gateway.
The domain name is "home". I have an account called "amanda".
In email settings,
Forwarding address for administrative notices = amanda@home.
(I've tried other possibilities, like just plain old "amanda", and even my ISP mail address, which gets rejected because the sending domain won't resolve).

I use fetchmail to retrieve mail from my ISP, through spamassassin (installed from jesper's install_spamassassin.sh yesterday), and webmail to read my mail.

My first problem is the doubling up of the domain name (@home.home). Sending mail to amanda@home works fine.

I tried grep 'root@home.home' /etc/*
and returned nothing.

This is a sample of a system generated email which eventually finds it's way into my personal mailbox (amanda@home).


Hi. This is the qmail-send program at home.
I tried to deliver a bounce message to this address, but the bounce bounced!

<root@home.home>:
Sorry, I couldn't find any host named home.home. (#5.1.2)

--- Below this line is the original bounce.

Return-Path: <>
Received: (qmail 21636 invoked for bounce); 15 Aug 2005 11:20:07 -0000
Date: 15 Aug 2005 11:20:07 -0000
From: MAILER-DAEMON@home
To: root@home.home
Subject: failure notice

Hi. This is the qmail-send program at home.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<amanda@home.home>:
Sorry, I couldn't find any host named home.home. (#5.1.2)

--- Below this line is a copy of the message.

Return-Path: <root@home.home>
Received: (qmail 21634 invoked by uid 0); 15 Aug 2005 11:20:07 -0000
Date: 15 Aug 2005 11:20:00 -0000
Message-ID: <20050815112000.21627.qmail@home>
From: root@home.home (Cron Daemon)
To: amanda@home.home
Subject: Cron <root@server5> /etc/startmail
X-Cron-Env: <SHELL=/bin/bash>
X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin>
X-Cron-Env: <MAILTO=amanda@home>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <LOGNAME=root>

fetchmail:-:7: parse error at protocol


My next problem is obviously the fetchmail parse error.

Any and all help really appreciated, as this has been driving me bonkers for 2 years (used sme 6.0 final from Mitel previously, and just ignored the mail errors).

Amanda
...

Offline psoren

  • *
  • 371
  • +0/-0
Re: system mail gets double domain (home.home)
« Reply #1 on: August 15, 2005, 02:34:17 PM »
Quote from: "commanda"
The domain name is "home".


For a start try to change your domain name to "home.xxx" which looks more like a valid domain.

Per

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: system mail gets double domain (home.home)
« Reply #2 on: August 15, 2005, 04:52:20 PM »
Quote from: "commanda"
Sme-server 6.0.1-01 set up as private server & gateway.
The domain name is "home". I have an account called "amanda".
In email settings,
Forwarding address for administrative notices = amanda@home.
(I've tried other possibilities, like just plain old "amanda", and even my ISP mail address, which gets rejected because the sending domain won't resolve).


See "defaultdomain" in:

http://www.ezmlm.org/man/man8/qmail-inject.8.html

qmail-inject interprets user@home as being addressed to a hostname in your current domain. It converts the hostname to a "fully qualified domain name" by adding the default domain name, which is how you are getting "home.home".

Use a proper domain name, and you won't have this problem.

bgthoele

failure notice root@domain.domain same problem
« Reply #3 on: July 26, 2007, 03:47:46 PM »
Me too,

I have also been fighting with this for years, I have several server only installs.  Can someone post commands that would fix this.  I couldn't make heads or tails of

http://www.ezmlm.org/man/man8/qmail-inject.8.html

I found this but still no luck.

http://wiki.contribs.org/DB_Variables_Configuration

Can someone post commands, pretty please.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: failure notice root@domain.domain same problem
« Reply #4 on: July 26, 2007, 04:23:54 PM »
Quote from: "bgthoele"

Can someone post commands, pretty please.


Option 2 in the console will allow you to change the domain name. Use a properly formatted domain name - mydomain.local, for instance.