|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Gary V (mr88talent
hotmail.com)
Date: Sat Jan 19 2008 - 09:45:11 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Date: Sat, 19 Jan 2008 13:42:46 +0100
> From: oskar
> here it is:
>
> https://chuck.ath.cx/amavisd.conf.txt
>
> (too big for the mailinglist,>40000 chars)
>
>>> Jan 7 10:49:34 srv amavis[14325]: (14325-02) mail_via_smtp: session
>>> failed: errno=Invalid argument
Are you trying to send mail from amavis to Postfix? Do you know that Postfix
is not listening on port 10026? You have:
$forward_method = 'smtp:[[172.16.0.2]]:10026'; # where to forward checked mail
$notify_method = 'smtp:[[172.16.0.2]]:10026'; # where to submit notifications
Double brackets? Not certain, but I think this may be why the argument is
invalid. I would first go with single brackets. See what happens.
Test by sending a message to 127.0.0.2:25
Now, if Postfix is not supposed to be the next step in the chain, and you still
can't forward mail out of amavisd-new, then first fix whatever program
is supposed to be listening on port 10026 (dspam or something?).
If Postfix _is_ to be the next step in the chain after amavisd-new, try:
$forward_method = 'smtp:[127.0.0.2]:10025'; # where to forward checked mail
$notify_method = $forward_method; # where to submit notifications
along with:
127.0.0.2:10025 inet n - n - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8,172.16.0.2
-o strict_rfc821_envelopes=yes
-o disable_dns_lookups=yes
(notice change to listening address, and to mynetworks)
Also, you have:
mynetworks = qw( 127.0.0.0/8 10.0.0.0/24 127.0.0.0/24);
127.0.0.0/24 is included in 127.0.0.0/8, so no need to list it again.
I would remove this entry and leave this setting at the default of:
#
mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10
# 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 ); # default
Additionally, you have:
$inet_socket_bind = '172.16.0.2';
Do you need amavisd-new to accept mail from some client other
than localhost?
You have:
inet_acl = qw( 127/8 10/8 172.16/12 192.168/16 172.16.0.2/32);
172.16.0.2/32 is included in 172.16/12. No need to list it again.
> smtp inet n - n - - smtpd
> -o cleanup_service_name=pre-cleanup
> -o content_filter=amavis-lmtp:[127.0.0.2]:10024
> inet_interfaces = 127.0.0.2
> mynetworks = 10.0.0.0/24, 127.0.0.0/8
I'm not sure what you are trying to accomplish by using 127.0.0.2
and 172.16.0.2 in your amavis and Postfix configuration. In the
typical setup, amavis listens on 127.0.0.1:10024, Postfix sends mail
to 127.0.0.1:10024 and then amavis forwards it back to Postfix,
which is configured to listen on 127.0.0.1:10025 (and accept
mail only from 127.0.0.0/8). I'm also not sure if it your intent
to place another program in this chain. It would be helpful to others
if you described your intent.
Gary V
_________________________________________________________________
Need to know the score, the latest news, or you need your Hotmail®-get your "fix".
http://www.msnmobilefix.com/Default.aspx
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]