It is failing on $smtp_handle = Net::SMTP->new($relayhost, Port => 
$relayhost_port,

In /etc/postfix/main.cf, do you have..

content_filter=smtp-amavis:[127.0.0.1]:10024

You should have ...

# netstat -an|grep 10025
tcp        0      0 127.0.0.1:10025         0.0.0.0:*               LISTEN
# netstat -an|grep 10024
tcp        0      0 127.0.0.1:10024         0.0.0.0:*               LISTEN

Also, do the /var/log/mail/* log files have any information ?
Sounds more like a postfix config error ..

Steve Johnson wrote:
> Hi,
>
> For the first time in the few setups that I have performed, I'm having 
> an issue with the Postfix reinjection daemon from amavis. I'm unsure as 
> to where the problem could be, between amavis and Postfix. This setup is 
> running on Trustix Linux 3.0 and is the first time I try to set it in 
> Trustix. I've also posted on the Postfix mailing list and the only 
> answer I have received so far was that I should check with the 
> distribution because my settings looked ok. So I'm also asking this list 
> for help, in case :-).
>
> When amavis tries to send mail back to the reinjection daemon, I get the 
> following error:
> Can't connect to 127.0.0.1 port 10025,  (Bad file descriptor) at 
> /usr/sbin/amavisd line 4323
>
> However, the reinjection daemon is listening on port 10025, and I can 
> connect fine to it through telnet, with both regular users and the 
> amavis user. Here's the output from netstat as well:
> tcp        0      0 127.0.0.1:10025         0.0.0.0:*               
> LISTEN      2413/master
>
> Here's what I have in amavisd.conf for the reinjection:
> ---------------------------------
> # POSTFIX, or SENDMAIL in dual-MTA setup, or EXIM V4
> # (set host and port number as required; host can be specified
> # as an IP address or a DNS name (A or CNAME, but MX is ignored)
> $forward_method = 'smtp:[127.0.0.1]:10025';  # where to forward checked 
> mail
> $notify_method = $forward_method;            # where to submit 
> notifications
> ---------------------------------
>
> And here's what I have in my master.cf for the reinjection daemon:
> ---------------------------------
> 127.0.0.1:10025 inet n  -       n       -       -       smtpd
>    -o content_filter=
>    -o smtpd_proxy_filter=
>    -o myhostname=smtp.domain.com
>    -o mydomain=domain.com
>    -o smtpd_banner=smtp.domain.com
>    -o mynetworks=127.0.0.0/8
>    -o smtpd_recipient_restrictions=permit_mynetworks,reject
>    -o local_recipient_maps=
>    -o receive_override_options=no_unknown_recipient_checks
> ---------------------------------
>
> Any clue as to what could be causing this, or where I could check next? 
> Any hints would be appreciated.
>
> Thanks a lot,
> Steve Johnson
> _______________________________________________
> tsl-discuss mailing list
> [email protected]
> http://lists.trustix.org/mailman/listinfo/tsl-discuss
>   
_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss

Reply via email to