View previous topic :: View next topic |
Author |
Message |
piggie Tux's lil' helper
Joined: 01 Jan 2003 Posts: 113 Location: Sydney, Australia
|
Posted: Fri Sep 05, 2003 1:26 am Post subject: Sendmail Problem |
|
|
Hi all.
I'm just trying to set up sendmail so that cgi forms from my apache server can send mail to external addresses.
Running sendmail though, gives me an error I have been tearing my hair out trying to fix:
Code: |
sendmail -oi -t
To: an.address@server.com
From: test@test.com
Subject: Test
test test
test test
sendmail: 553 malformed address: <root@_HOSTNAME_>
|
Where is sendmail picking up this "root@_HOSTNAME_>" address from?
I have checked aliases, sendmail config etc.
I'm sure _HOSTNAME_ should be picking up the hostname from the server, but it doesnt appear to be.
typing hostname returns the right hostname. /etc/hostname contains the right hostname.
Any ideas?
I'm only using sendmail because thats what I have used in the past.
Any suggestions for another MTA to use is fine. I'm not using this as an incoming server - nor an outgoing server for anything other than daemons on the local host.
However, before I removed ssmptp and installed Sendmail, it was doing the same thing - so this is not a sendmail specific issue unless ssmtp is using sendmail somehow:
Sep 5 11:14:11 proxy2 sSMTP[12960]: 553 malformed address: <root@_HOSTNAME_>
Sep 5 11:14:47 proxy2 sSMTP[12961]: 553 malformed address: <root@_HOSTNAME_> |
|
Back to top |
|
|
thunder Retired Dev
Joined: 01 Sep 2003 Posts: 164 Location: Wroclaw, PL
|
Posted: Fri Sep 05, 2003 6:39 am Post subject: |
|
|
change sendmail to postfix it's my advice _________________ Damian Florczyk
Gentoo/NetBSD development lead |
|
Back to top |
|
|
bruzzler n00b
Joined: 08 Oct 2003 Posts: 70
|
Posted: Mon Oct 11, 2004 3:36 pm Post subject: |
|
|
the hostname is specified in /etc/ssmtp/ssmtp.conf and defaults to _HOSTNAME_ ... |
|
Back to top |
|
|
robfantini Tux's lil' helper
Joined: 10 Jan 2004 Posts: 106 Location: Boston, Massachusetts
|
Posted: Mon Nov 08, 2004 6:01 pm Post subject: |
|
|
The problem is this. [using postfix on the server].
when /etc/hostname is set to just the 1-st word of a fully-qualified hostname [like "fbc64" ] then an error message like this occurs:
Code: |
<19>Nov 8 12:39:30 fbc64 sSMTP[14014]: RCPT TO:<rob@xyz.com> (504
<fbc64>: Helo command rejected: need fully-qualified hostname)
|
So the fully-qualified hostname needs to be set in
/etc/hostname or or in /etc/ssmtp/ssmtp.conf .
The question I have is this: is there anything wrong with putting the fully-qualified hostname in /etc/hostname ?
Gentoo install docs [that i remember] say to just use the 1-st part of the hostname there. |
|
Back to top |
|
|
smutt n00b
Joined: 23 Aug 2003 Posts: 51 Location: Utrecht, Netherlands
|
Posted: Mon Nov 08, 2004 10:55 pm Post subject: |
|
|
How about just using stupid old mail. Something like:
Code: |
echo "test test" |mail -s "Subject test" address@example.com
|
--Smutt |
|
Back to top |
|
|
|