Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sendmail Problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
piggie
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jan 2003
Posts: 113
Location: Sydney, Australia

PostPosted: Fri Sep 05, 2003 1:26 am    Post subject: Sendmail Problem Reply with quote

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
View user's profile Send private message
thunder
Retired Dev
Retired Dev


Joined: 01 Sep 2003
Posts: 164
Location: Wroclaw, PL

PostPosted: Fri Sep 05, 2003 6:39 am    Post subject: Reply with quote

change sendmail to postfix :) it's my advice :)
_________________
Damian Florczyk
Gentoo/NetBSD development lead
Back to top
View user's profile Send private message
bruzzler
n00b
n00b


Joined: 08 Oct 2003
Posts: 70

PostPosted: Mon Oct 11, 2004 3:36 pm    Post subject: Reply with quote

the hostname is specified in /etc/ssmtp/ssmtp.conf and defaults to _HOSTNAME_ ...
Back to top
View user's profile Send private message
robfantini
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jan 2004
Posts: 106
Location: Boston, Massachusetts

PostPosted: Mon Nov 08, 2004 6:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
smutt
n00b
n00b


Joined: 23 Aug 2003
Posts: 51
Location: Utrecht, Netherlands

PostPosted: Mon Nov 08, 2004 10:55 pm    Post subject: Reply with quote

How about just using stupid old mail. Something like:

Code:

echo "test test" |mail -s "Subject test" address@example.com


--Smutt
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum