Hello 

thak you for your answer
I have underston for question 1 

now back to question 2 about the local detection of all my inbound mails

yest it is in my local network but not decalred in $mynetworks , so is it still 
normal behaviour

see the attachement for more info 

thank you in advance 
 
 




CC: postfix-users@postfix.org
From: mart...@youngguns.nl
Subject: Re: postfix architecture
Date: Sun, 20 Dec 2009 21:54:38 +0100
To: linuxfra...@hotmail.com




On Dec 20, 2009, at 9:37 PM, Houssam El Hallak wrote:


Hello 
this is my first post here , so If any mistake with this post please let me 
know .

question 1 : is this a good postfix architecture ??

I have 2 postfix Servers :
DMZ_postfix which has basic protection (192.168.0.1). and forward emails to 
LAN_postfixWhat do you mean with 'basic protection'? The way I read it this 
could cause backscatter and thus is not a good idea.
LAN_postfix which has the users accounts , amavis_new , spamassassin and 
clamavWhy do you want to use 2 postfix machines?is it good to install tha 
anitspam and the anti firus on the lan server ,or I had to do it on the DMZ 
server ??Depends, I think most antispam/antivirus should be on the DMZ postfix 
server and only the user dependent antispam should be on the LAN postfix server.

Question 2 : Lan_postfix server consider my DMZ_postfix as local , is it normal 
?
If it is in your local network then probably yes, please provide 'postconf -n'

I have something like this in the log :
Passed Clean LOCAL 192.168.0.1 , 217.17.80.8I understand that emails sent from 
my server are considered LOCAL , but not emails coming from outside .

infact amavis consider all my emails as LOCAL 

Thank you in advance for your help

Windows Live: Make it easier for your friends to see what you’re up to on 
Facebook.
                                          
_________________________________________________________________
Windows Live: Make it easier for your friends to see what you’re up to on 
Facebook.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
debug_peer_level = 1
default_transport = smtp
defer_transports = hold
inet_interfaces = all
mail_owner = postfix
mailbox_size_limit = 0
message_size_limit = 8000000
mydestination = $myhostname, localhost.$mydomain
myhostname = smtp.mydomain.fr
mynetworks = 127.0.0.0/8
myorigin = $myhostname
notify_classes = software, resource
queue_directory = /var/spool/postfix
readme_directory = no
recipient_delimiter = +
relayhost = [192.168.0.10]
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_delay_reject = no
smtpd_recipient_restrictions = permit_sasl_authenticated,
                              check_client_access 
hash:/etc/postfix/client_access,
                              reject_unauth_destination, permit
smtpd_restriction_classes = must_authenticate
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sender_login_maps = mysql:/etc/postfix/mysql_smtpd_sender_login_maps.cf
smtpd_sender_restrictions = reject_rhsbl_client blackhole.securitysage.com,
                            reject_rhsbl_client rhsbl.ahbl.org,
                            reject_rhsbl_client rhsbl.sorbs.net,
                            reject_rhsbl_client block.rhs.mailpolice.com,
                            reject_rhsbl_client dynamic.rhs.mailpolice.com,
                            reject_rbl_client bl.spamcop.net,
                            reject_rbl_client sbl-xbl.spamhaus.org
                            check_client_access hash:/etc/postfix/client_access,
                            reject_unknown_sender_domain,
                            reject_sender_login_mismatch,
                            permit
smtpd_tls_CAfile = /etc/postfix/cert/cacert.pem
smtpd_tls_ask_ccert = no
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/postfix/cert/smtpd.crt
smtpd_tls_key_file = /etc/postfix/cert/smtpd.key
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_use_tls = yes
soft_bounce = no
tls_random_source = dev:/dev/urandom
transport_maps = hash:/etc/postfix/transport, 
proxy:mysql:/etc/postfix/mysql_transport.cf
unknown_local_recipient_reject_code = 450
virtual_destination_recipient_limit = 1
virtual_gid_maps = static:400
virtual_mailbox_base = /
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virt_domains.cf
virtual_mailbox_limit = 10000000
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virt.cf
virtual_uid_maps = static:400
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
debug_peer_level = 2
disable_vrfy_command = yes
inet_interfaces = all
local_recipient_maps =
mailbox_size_limit = 0
mydomain = mydomain.fr
myhostname = mail.mydomain.fr
mynetworks = 10.2.1.50
mynetworks_style = host
myorigin = $myhostname
notify_classes = bounce, software, resource
readme_directory = no
recipient_delimiter = +
relay_domains = $mydestination, $transport_maps
smtpd_banner = $myhostname ESMTP
smtpd_data_restrictions = reject_unauth_pipelining                permit
smtpd_recipient_restrictions = permit_mynetworks
                reject_unknown_sender_domain                
                                reject_unauth_destination            
                                reject_rhsbl_client blackhole.securitysage.com  
        
                                reject_rhsbl_client rhsbl.ahbl.org              
                                reject_rhsbl_client rhsbl.sorbs.net             
 
                                reject_rhsbl_client block.rhs.mailpolice.com    
        
                                reject_rhsbl_client dynamic.rhs.mailpolice.com  
         
                                reject_rbl_client bl.spamcop.net                
                                reject_rbl_client sbl-xbl.spamhaus.org          
      
                                permit
soft_bounce = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 450
#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp inet n - y - - smtpd
smtps inet n - y - - smtpd
  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes

#smtp      inet  n       -       -       -       -       smtpd
#submission inet n       -       -       -       -       smtpd
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#smtps     inet  n       -       -       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#628      inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       -       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       -       -       -       smtp
        -o smtp_fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
retry     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       1       scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix  -       n       n       -       2       pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} 
${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}

smtp-amavis unix - - - - 10 smtp
        -o smtp_data_done_timeout=1200
        -o smtp_send_xforward_command=yes


127.0.0.1:10025 inet 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 mynetworks=127.0.0.0/8
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o strict_rfc821_envelopes=yes
        -o 
receive_override_options=no_unknown_recipient_checks,no_header_body_checks
        -o smtpd_bind_address=127.0.0.1
        -o 
transport_maps=hash:/etc/postfix/transport,mysql:/etc/postfix/mysql_transport.cf

Reply via email to