Właściwie, to zamieszczę ten plik również tutaj, może się komuś przyda
# main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
#canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual
#-----MAIL-AUTHENT----
#----DEBIAN-----
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
#----DEBIAN-----
#-----MAIL-AUTHENT----
#---------------MUSI BYC PRZY WLASNEJ DOMENIE-----------
myorigin = /etc/mailname
#---------------MUSI BYC PRZY WLASNEJ DOMENIE-----------
mydomain = mojadomena.pl
myhostname = server.mojadomena.pl
#mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
#---TAK JEST LEPIEJ (siec dopasowac do swojej)
mynetworks = 127.0.0.0/8, 192.168.0.0/24
#----DODANE - IP bramki (routera, gateway)
proxy_interfaces = 192.168.0.100
#
#---------------MUSI BYC PRZY WLASNEJ DOMENIE-----------
inet_interfaces = all
#---------------MUSI BYC PRZY WLASNEJ DOMENIE-----------
#
#---------------MUSI BYC PRZY WLASNEJ DOMENIE-----------
masquerade_domains =
#masquerade_domains = linuxfan.de
#---------------MUSI BYC PRZY WLASNEJ DOMENIE-----------
#
#-------------------DO WYBORU
#mydestination = localhost, localhost.$mydomain, $myhostname, $mydomain
#
mydestination = localhost, localhost.$mydomain, $myhostname, $myhostname.$mydomain, $mydomain, $mynetworks
#
#mydestination = localhost, localhost.mojadomena.pl, server, server.mojadomena.pl, mojadomena.pl, 127.0.0.1, 192.168.20.1
#-------------------DO WYBORU
#
#-------------------DO WYBORU
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name
smtpd_banner = ESMTP $mail_name $mail_version
#-------------------DO WYBORU
biff = no
#
defer_transports =
disable_dns_lookups = no
#
#------TWOJ "DOSTAWCA POCZTY" (relayhost MX)
#relayhost = [mail.gmx.net]
#relayhost = [smtprelay.t-online.de]
relayhost = [smtp.gmail.com]
#---UMIESCIC W KLAMRACH
#
#---------AMAVIS
content_filter = smtp-amavis:[localhost]:10024
#---------AMAVIS
#
#-------policy
policy-spf_time_limit = 3600s
#-------policy
#
#--------WYSYLKA POCZTY (zaleznie od uzywanego progr)- MDA
#mailbox_command = procmail -a "$EXTENSION"
#-----DOVECOT---
mailbox_command = /usr/lib/dovecot/deliver
#-----DOVECOT---
#--------WYSYLKA POCZTY (zaleznie od uzywanego progr)- MDA
#
#-------ALIASSES
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
#-------ALIASSES
#
#------Mailbox-Message_size_limit
mailbox_size_limit = 0
#---Mail 10 MB----SUSE
#message_size_limit = 10240000
#---Mail 20 MB----SUSE
#message_size_limit = 20240000
#---Mail 30 MB----SUSE
#message_size_limit = 30240000
#---Mail 50 MB----DEBIAN
#message_size_limit = 52428800
#---Mail 100 MB----DEBIAN
message_size_limit = 104857600
#------Mailbox-Message_size_limit
#
# appending .domain is the MUA's job.
append_dot_mydomain = no
#
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
#
readme_directory = no
#
#---DO AUTH TLS-SSL(mozna wylaczyc)----
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
#---DO AUTH TLS-SSL("zmusza" do TLS-SSL)----
###smtpd_enforce_tls=yes
#---DO AUTH TLS-SSL("zmusza" do TLS-SSL)----
#---DO AUTH TLS-SSL(mozna wylaczyc)----
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
#
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
#
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
#
recipient_delimiter = +
#
inet_protocols = all