On 8/9/2010 11:52 AM, Donald G. Knecht wrote:
> My system uses SuSE 11.2. It is running the latest SuSE rpms.
>
>
>
> I had this working then the server rebooted and now amavis won't start.
>
> In fact I seem to remember bothering one of the authors about the hostname
> bug.
>
> (There was a bug that hostnames with a hyphen weren't recognized as valid).
>
> I can't remember what the outcome was, but I know it was working for at
> least six months.
>
> Now mail won't deliver.
>
>
>
> I get the following error messages:
>
>
>
> Aug  9 12:23:40 host-name postfix/smtp[6551]: connect to
> 127.0.0.1[127.0.0.1]:10024: Connection refused
>
>
>
> And I think the connection is refused because amavis is not running.
>
> Output of netstat -tap:
>
>
>
> host-name:/ # netstat -tap
>
> Active Internet connections (servers and established)
>
> Proto Recv-Q Send-Q Local Address           Foreign Address         State
> PID/Program name
>
> tcp        0      0 localhost:dyna-access   *:*                     LISTEN
> 2740/clamd
>
> tcp        0      0 localhost:783           *:*                     LISTEN
> 2881/spamd.pid
>
> tcp        0      0 *:sunrpc                *:*                     LISTEN
> 2095/rpcbind
>
> tcp        0      0 *:ftp                   *:*                     LISTEN
> 2805/pure-ftpd (SER
>
> tcp        0      0 localhost:ipp           *:*                     LISTEN
> 2296/cupsd
>
> tcp        0      0 *:smtp                  *:*                     LISTEN
> 2680/master
>
> tcp        0      0 *:22                  *:*                     LISTEN
> 2886/sshd
>
> tcp        0      0 localhost:10025         *:*                     LISTEN
> 2680/master
>
> tcp        0      0 host-name.com:22      192.168.:isbconference1
> ESTABLISHED 6602/sshd: user [pr
>
> tcp        0      0 host-name.com:smtp      cvcw138.static.012:nirp
> TIME_WAIT   -
>
> tcp        0      0 *:sunrpc                *:*                     LISTEN
> 2095/rpcbind
>
> tcp        0      0 *:www-http              *:*                     LISTEN
> 2233/httpd2-itk
>
> tcp        0      0 *:ftp                   *:*                     LISTEN
> 2805/pure-ftpd (SER
>
> tcp        0      0 localhost:ipp           *:*                     LISTEN
> 2296/cupsd
>
> tcp        0      0 *:smtp                  *:*                     LISTEN
> 2680/master
>
> tcp        0      0 *:22                  *:*                     LISTEN
> 2886/sshd
>
> tcp        0      0 localhost:10025         *:*                     LISTEN
> 2680/master
>
>
>
> I try to restart amavis:
>
>
>
> hastys-fl:/ /etc/init.d/amavis restart
>
> Shutting down virus-scanner (amavisd-new):
> done
>
> Starting virus-scanner (amavisd-new):   The value of variable $myhostname is
> "host-name", but should have been
>
>    a fully qualified domain name; perhaps uname(3) did not provide such.
>
>    You must explicitly assign a FQDN of this host to variable $myhostname
>
>    in amavisd.conf, or fix what uname(3) provides as a host's network name!
>
>
> failed
>
>
>
>
>
> The fqdn IS specified in /etc/ amavisd.conf -BUT amavis seems to ignore it.
>
> $myhostname=host-name.com
>
>
>
> THANKS for any help!!
>
> -don

Seems to work for me.

Aug  9 12:33:12 mgate3 amavis[97831]: starting. 
/usr/local/sbin/amavisd at mail-gate.example.org 
amavisd-new-2.6.4 (20090625), Unicode aware

# grep myhostname amavisd.conf
# $myhostname = 'host.example.com';  # must be a 
fully-qualified domain name!
$myhostname = 'mail-gate.example.org';


Maybe you got the format wrong?


   -- Noel Jones

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot 
org

Reply via email to