Snažím sa rozchodit mailovy server v lokalnej sieti .
Nainstaloval som postfix a ipop3d.
konfigurak postfixu vyzera takto :
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix
mail_owner = postfix
default_privs = nobody
myhostname = server.ubuntos.com
mydomain = ubuntos.com
myorigin = ubuntos.com
#myorigin = $mydomain
inet_protocols = ipv4
inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
#mydestination = $myhostname, localhost.$mydomain
#mydestination = $myhostname, localhost.$mydomain $mydomain
mydestination = $myhostname, localhost.$mydomain,
$mydomain,
ns.$mydomain,
mail.$mydomain, www.$mydomain
local_recipient_maps = $alias_maps proxy:unix:passwd.byname
double_bounce_sender = double-bounce
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
home_mailbox = Mailbox
home_mailbox = Maildir/
#mail_spool_directory = /var/mail
#mail_spool_directory = /var/spool/mail
mailbox_command =
header_checks = pcre:/etc/postfix/body_checks
body_checks = pcre:/etc/postfix/body_checks
relay_domains = $mydestination
mynetworks = 192.168.0.0/24, 127.0.0.0/8
smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Linux-Mandrake)
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10
debug_peer_level = 2
debugger_command =
PATH=/usr/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
default_destination_recipient_limit = 25
initial_destination_concurrency = 2
maximal_backoff_time = 4000
maximal_queue_lifetime = 5
bounce_queue_lifetime = 2d
minimal_backoff_time = 1000
queue_run_delay = 1000
disable_vrfy_command = yes
smtpd_etrn_restrictions =
smtpd_recipient_limit = 1000
smtpd_timeout = 300
smtpd_error_sleep_time = 3
smtpd_soft_error_limit = 10
smtpd_hard_error_limit = 100
#smtpd_client_restrictions = permit_mynetworks, reject_unknown_client
#smtpd_client_restrictions =
smtpd_client_restrictions = permit_mynetworks,
reject_rbl_client relays.ordb.org
reject_rbl_client dnsbl.njabl.org
reject_rbl_client sbl-xbl.spamhaus.org
smtpd_helo_required = yes
# smtpd_helo_restrictions =
# smtpd_helo_restrictions = permit_mynetworks, reject_maps_rbl
smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname
reject_rbl_client relays.ordb.org
reject_rbl_client dnsbl.njabl.org
reject_rbl_client sbl-xbl.spamhaus.org
# smtpd_sender_restrictions = reject_unknown_sender_domain, hash:/etc/postfix/access
# smtpd_sender_restrictions =
smtpd_sender_restrictions = reject_unknown_sender_domain,
reject_rbl_client relays.ordb.org
reject_rbl_client dnsbl.njabl.org
reject_rbl_client sbl-xbl.spamhaus.org
reject_non_fqdn_sender
check_sender_access hash:/etc/postfix/sender_access
smtpd_recipient_restrictions = reject_unknown_recipient_domain,
permit_mynetworks,
check_recipient_access pcre:/etc/postfix/recipient_checks,
reject_unauth_destination
allow_untrusted_routing = no
access_map_reject_code = 550
invalid_hostname_reject_code = 501
maps_rbl_reject_code = 550
reject_code = 550
relay_domains_reject_code = 550
unknown_address_reject_code = 450
unknown_client_reject_code = 450
unknown_hostname_reject_code = 450
bounce_size_limit = 50000
command_time_limit = 1000
default_process_limit = 20
deliver_lock_attempts = 5
deliver_lock_delay = 1
duplicate_filter_limit = 1000
fork_attempts = 5
fork_delay = 1
header_size_limit = 102400
line_length_limit = 2048
message_size_limit = 4096000
mailbox_size_limit = 51200000
qmgr_message_active_limit = 1000
qmgr_message_recipient_limit = 1000
queue_minfree = 0
stale_lock_time = 500
transport_retry_time = 60
delay_warning_time = 4
allow_percent_hack = yes
append_at_myorigin = yes
#append_dot_mydomain = no
append_dot_mydomain = yes
empty_address_recipient = MAILER-DAEMON
masquerade_domains = $mydomain
masquerade_exceptions =
swap_bangpath = yes
trigger_timeout = 10
do inetd.conf som pridal tento riadok :
pop3 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/ipop3d
postovneho klienta som nastavil takto :
Server POP3: pop3.ubuntos.com
Server SMTP: smtp.ubuntos.com
Adresa: uzivatel@ubuntos.com
Uživatelské jméno: uzivatel
Heslo: unixové heslo uživatele
Ked sa snazim odoslat postu od jedneho uzivatela druhemu vypise mi
The connection to the server has failed. Account: 'ziak1', Server: 'smtp.ubuntos.com', Protocol: SMTP, Port: 25, Secure(SSL): No, Socket Error: 10060, Error Number: 0x800CCC0E
Nie je potrebne tie emailove ucty niekde vytvorit?Alebo stacia linuxovske ucty a hesla?
Este otazka k tomuto : mail_owner = postfix - ked skusim vytvorit uzivatela postfix vypise mi ze uzivatel postfix uz existuje ale ja ho nevidim -je to normalne?
Moze to blokovat firewall?
Edit: teraz som si vsimol ze ked dam odoslat tu spravu vo vypise "active sessions " v routri sa mi pri porte 25 ukaze nejaka uplne ina ip-cka nez ip-cka pocitaca na ktorom je mailserver. Takze to bude pravdepodobne nieco s DNS ..ako to mam spravne nastavit?
Ako je vidiet som v tomto dost velka lama takze akakolvek pomoc je silne vítana