Cant send mail from Evolution or Squirrel Mail

Discussion in 'Installation/Configuration' started by bazza, Jun 16, 2009.

  1. bazza

    bazza New Member

    Hi Folks, a little help is needed. I have ISPC3 installed on Debian Lenny using Falko's perfect guide (btw thanks for that). I'm playing with this locally with server as 192.168.1.10, DNS192.168.1.54 and ...55
    I find that I can't send e-mails (although I can connect to the mailbox and retrieve mail)
    When I try sending a message locally I get this in the logs

    Code:
    Jun 16 11:03:52 joey postfix/smtpd[18950]: disconnect from unknown[192.168.1.10]
    Jun 16 11:03:52 joey postfix/smtpd[18950]: connect from unknown[192.168.1.10]
    Jun 16 11:03:52 joey postfix/smtpd[18950]: 58364192235: client=unknown[192.168.1.10]
    Jun 16 11:03:52 joey postfix/cleanup[18955]: 58364192235: message-id=<1245106919.3515.4.camel@rover.bazzanet>
    Jun 16 11:03:52 joey postfix/qmgr[3232]: 58364192235: from=, size=465, nrcpt=1 (queue active)
    Jun 16 11:03:52 joey postfix/smtpd[18950]: disconnect from unknown[192.168.1.10]
    Jun 16 11:03:52 joey postfix/error[18956]: 58364192235: to=, relay=none, delay=0.12, delays=0.06/0.05/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    And when I try to send a message externally>>>>>>>>>>>>>
    Connection to the server is refused and I get this in the log.
    Code:
    Jun 16 11:04:11 joey postfix/smtpd[18950]: connect from unknown[192.168.1.10]
    Jun 16 11:04:11 joey pop3d: Connection, ip=[::ffff:192.168.1.10]
    Jun 16 11:04:11 joey postfix/smtpd[18950]: NOQUEUE: reject: RCPT from unknown[192.168.1.10]: 554 5.7.1 : Relay access denied; from= to= proto=ESMTP helo=<[192.168.1.10]>
    I think I know how to fix this (I've got a bit of experience with Sendmail but I'm new to Postfix) but the first problem has me stumped.
     
  2. Croydon

    Croydon HowtoForge Supporter

    Please check if amavisd is running.
    Port 10024 is amavisd and it seems that your postfix cannot connect to amavisd.
     
  3. bazza

    bazza New Member

    You where correct. I checked and it was not running. Firing it up from the command line we got:-

    joey:~# /etc/init.d/amavis start
    Starting amavisd: hostname: Unknown host
    The value of variable $myhostname is "", 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 /etc/amavis/conf.d/05-node_id, or fix what uname(3) provides as a host's
    network name!
    (failed).
    joey:~# uname -a
    Linux joey.xxxx.co.nz 2.6.26-2-686 #1 SMP Thu May 28 15:39:35 UTC 2009 i686 GNU/Linux

    Supplied the required data and it now works. Still a bit puzzled as to why it didn't work previously as uname had the correct FQDN.

    Thanks for your help:)
     
  4. fhawk

    fhawk New Member

    # echo joey.xxxx.co.nz > /etc/hostname
    # /etc/init.d/hostname.sh start
     

Share This Page