I am using Ubuntu Server 13.04 on my mail system. I am just setting the Postfix and Amavis. In every config for communication I am using 127.0.0.1 as IP address to pass mails to amavis. When I look to the logs its still trying to connect to Amavis with my eth0 IP address which is connected to the internet. I dont want to allow this IP address in the configs. Is there any way how to tell Ubuntu to use the 127.0.0.1 instead of my internet IP address? I dont know why this is happening. Thank you.
Edit: More info
This is what I set in postfix main.cf:
content_filter = amavis:[127.0.0.1]:10024
127.0.0.1:10025 inet n - - - - smtpd -o mynetworks=127.0.0.0/8
Also this is what I have in /etc/amavis/conf.d/50-user:
@inet_acl = qw( 127.0.0.1 );
But when I try to receive a mail, in the logs there is:
amavis: () (!)DENIED ACCESS from IP 18.104.22.168, policy bank ''
where 22.214.171.124 is my IP address of eth0 interface.. Why its not accessing it with 127.0.0.1 but with eth0 IP address? I think I am missing something and this might be just how it works.. I am just asking if there is any explanation or possibility to change this. Because now I always have to add my IP address to
inet_acl and the subnet