Also, I have Postfix configured to feed mail to amavisd via LMTP 
protocol instead with the following in master.cf

smtp-amavis unix -  -  n -      2  lmtp
    -o lmtp_data_done_timeout=1200
    -o lmtp_send_xforward_command=yes


Steve Johnson wrote:
> Hi again,
>
> Sorry, but I did end up noticing something in something from master in 
> the mail logs. I'm just not sure if I had that before, as I might have 
> just disconnected too fast from my telnet tests. Now, when I try to 
> telnet to the 10025 port, or when amavis tries to send it back, I get 
> the following error:
>
> Feb 22 06:58:47 mail postfix/master[3689]: warning: process 
> /usr/lib/postfix/smtpd pid 3697 exit status 1
> Feb 22 06:58:47 mail postfix/master[3689]: warning: 
> /usr/lib/postfix/smtpd: bad command startup -- throttling
>
> This had also happened with the config below however. So it does seem 
> to be purely postfix related. I just really don't know where to look, 
> as without amavis, all is working fine, so it has to be something with 
> the reinjection daemon.
>
> Thanks again,
> Steve
>
> Steven Lutrov wrote:
>> Steve,
>>
>> I have this config for master.cf on one of my servers which is 
>> processing mail..
>>
>> 127.0.0.1:10025 inet n - n      -      -  smtpd
>>    -o content_filter=
>>    -o local_recipient_maps=
>>    -o relay_recipient_maps=
>>    -o smtpd_restriction_classes=
>>    -o smtpd_delay_reject=no
>>    -o smtpd_client_restrictions=permit_mynetworks,reject
>>    -o smtpd_helo_restrictions=
>>    -o smtpd_sender_restrictions=
>>    -o smtpd_recipient_restrictions=permit_mynetworks,reject
>>    -o mynetworks_style=host
>>    -o mynetworks=127.0.0.0/8
>>    -o strict_rfc821_envelopes=yes
>>    -o smtpd_error_sleep_time=0
>>    -o smtpd_soft_error_limit=1001
>>    -o smtpd_hard_error_limit=1000
>>    -o smtpd_client_connection_count_limit=0
>>    -o smtpd_client_connection_rate_limit=0
>>    -o 
>> receive_override_options=no_header_body_checks,no_unknown_recipient_checks 
>>
>>
>>
>> Steve Johnson wrote:
>>> Hi,
>>>
>>> Thanks for the information. Yes, I do have this in main.cf and 
>>> amavis is listening on port 10024 and the reinjection daemon 
>>> listening on port 10025. What I pointed as being the error message 
>>> was taken from the mail log files.
>>>
>>> Steve
>>>
>>> Steven Lutrov wrote:
>>>> 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