Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

postfix how to, mali mail server

[es] :: Linux/UNIX serveri i servisi :: postfix how to, mali mail server

Strane: < .. 1 2 3 4

[ Pregleda: 13277 | Odgovora: 79 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

jovanmal
Jovan Malešević
Sistem administrator
BL, Republika Srpska

Član broj: 6106
Poruke: 204
*.teol.net.

Sajt: flashofobvious.blogspot.c..


+2 Profil

icon Re: postfix how to, mali mail server02.10.2011. u 18:26 - pre 152 meseci
Citat:
Zasto bi morao da dodaje A zapis za mail.brokenbyte.org? Zasto njegovo stanje nije dobro kad jeste?


brokenbyte.org MX preference = 0, mail exchanger = freeland.brokenbyte.org
freeland.brokenbyte.org internet address = 188.120.97.39



U pravu si, nisam ovo vidio, ne znam kako...


Nego, šta kažu logovi mail servera? Šalje li on mailove?


..blinding flash of the obvious..
 
Odgovor na temu

djricky
IT & Network Engineer
AS200305
Beograd

SuperModerator
Član broj: 1046
Poruke: 4042
*.wifi.ricky.verat.net.

Sajt: https://v6.rs


+225 Profil

icon Re: postfix how to, mali mail server02.10.2011. u 18:47 - pre 152 meseci

Trying 188.120.97.39...
Connected to 188.120.97.39.
Escape character is '^]'.
220 freeland.brokenbyte.org ESMTP Postfix
ehlo freeland.brokenbyte.org
250-freeland.brokenbyte.org
250-PIPELINING
250-SIZE 15728640
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from: [email protected]
250 2.1.0 Ok
rcpt to:[email protected]

554 5.7.1 <[email protected]>: Relay access denied

da se ne uplasis, ako me primetis u logovima...
stvarno, sta kazu logovi kad posaljes mail?
“Choose a job you like, and you will never have to work a day of your life”
“Looking at small advantages prevents great affairs from being accomplished”

"Great power comes with great electricity bills"
"The fact that there's a highway to Hell but only a stairway to Heaven says a lot about
anticipated traffic volume"
"Fate: protects fools, little children, and ships named NCC-1701"
 
Odgovor na temu

zeenmc
Nedeljko Scepanovic
Beograd City

Član broj: 54186
Poruke: 419
*.dynamic.isp.telekom.rs.



+22 Profil

icon Re: postfix how to, mali mail server02.10.2011. u 19:09 - pre 152 meseci
Pre neki dan sam pitao gde bi trebalo da se nalaze logovi, nasao sam nesto al ne znam da li je to to :) uglavnom dosao sam do /var/log/ u kome se nalaze, jelte neki log fajlovi :P, izmedju ostalog mail.err , mail.info, mail.warn mail.log, u njima nesto i pise, al generalno ne znam sta da trazim, ima nesto oko slanja mislim u mail.log, prekopiracu neki deo

ovo je poslednji deo, na kraju se vidi da sam slao mail

Citat:
Oct 2 20:02:08 freeland postfix/local[15930]: 1FC19A0228: to=<[email protected]>, relay=local, delay=44523, delays=44518/4.6/0/0.11, dsn=4.3.0, status=$
Oct 2 20:02:09 freeland postfix/local[15914]: C4D67A0203: to=<[email protected]>, relay=local, delay=52322, delays=52317/4.7/0/0.09, dsn=4.3.0, status=$
Oct 2 20:02:09 freeland postfix/local[15915]: C7C02A01A4: to=<[email protected]>, relay=local, delay=61922, delays=61917/4.8/0/0.08, dsn=4.3.0, status=$
Oct 2 20:02:09 freeland postfix/local[15930]: C2C54A025A: to=<[email protected]>, relay=local, delay=29522, delays=29518/4.8/0/0.08, dsn=4.3.0, status=$
Oct 2 20:02:09 freeland postfix/local[15914]: C5253A0248: to=<[email protected]>, relay=local, delay=34922, delays=34917/4.8/0/0.1, dsn=4.3.0, status=d$
Oct 2 20:02:09 freeland postfix/local[15915]: C8009A028A: to=<[email protected]>, relay=local, delay=15122, delays=15117/4.9/0/0.1, dsn=4.3.0, status=d$
Oct 2 20:02:09 freeland postfix/local[15930]: C18EEA02A3: to=<[email protected]>, relay=local, delay=7923, delays=7918/4.9/0/0.1, dsn=4.3.0, status=def$
Oct 2 20:02:09 freeland postfix/local[15914]: C7490A012B: to=<[email protected]>, relay=local, delay=72123, delays=72118/5/0/0.1, dsn=4.3.0, status=def$
Oct 2 20:02:09 freeland postfix/local[15915]: CAC93A0232: to=<[email protected]>, relay=local, delay=42123, delays=42117/5/0/0.09, dsn=4.3.0, status=de$
Oct 2 20:05:38 freeland postfix/smtpd[16056]: connect from localhost[127.0.0.1]
Oct 2 20:05:39 freeland postfix/smtpd[16056]: 35A32A02F6: client=localhost[127.0.0.1], sasl_method=LOGIN, [email protected]
Oct 2 20:05:39 freeland postfix/cleanup[16061]: 35A32A02F6: message-id=<[email protected]>
Oct 2 20:05:39 freeland postfix/qmgr[15113]: 35A32A02F6: from=<[email protected]>, size=556, nrcpt=1 (queue active)
Oct 2 20:05:39 freeland roundcube: User [email protected] [192.168.1.15]; Message for [email protected]; 250: 2.0.0 Ok: queued as 35A32A02F6
Oct 2 20:05:39 freeland postfix/smtpd[16056]: disconnect from localhost[127.0.0.1]


CCNP Security, CCNA R&S, CCNA Security, CCNA Voice
LinuxIsFree
 
Odgovor na temu

djricky
IT & Network Engineer
AS200305
Beograd

SuperModerator
Član broj: 1046
Poruke: 4042
*.wifi.ricky.verat.net.

Sajt: https://v6.rs


+225 Profil

icon Re: postfix how to, mali mail server02.10.2011. u 19:39 - pre 152 meseci
ok, server je prihvatio mail za zeenmc... da li je to sve??

par sekundi kasnije u logu bi trebalo da bude i deo o isporuci tog maila na google servere...
nesto poput ovoga:
Oct 2 20:36:17 grapher postfix/smtpd[9876]: connect from localhost[127.0.0.1]
Oct 2 20:36:17 grapher postfix/smtpd[9876]: B6515F9E6: client=localhost[127.0.0.1], sasl_method=LOGIN, [email protected]
Oct 2 20:36:17 grapher postfix/cleanup[9882]: B6515F9E6: message-id=<[email protected]>
Oct 2 20:36:17 grapher postfix/qmgr[19216]: B6515F9E6: from=<[email protected]>, size=554, nrcpt=1 (queue active)
Oct 2 20:36:17 grapher roundcube: User [email protected] [62.108.XXX.XXX]; Message for [email protected]; 250: 2.0.0 Ok: queued as B6515F9E6
Oct 2 20:36:17 grapher postfix/smtpd[9876]: disconnect from localhost[127.0.0.1]

Oct 2 20:36:18 grapher postfix/smtpd[9890]: connect from localhost[127.0.0.1]
Oct 2 20:36:18 grapher postfix/smtpd[9890]: 2604DF9E9: client=localhost[127.0.0.1]
Oct 2 20:36:18 grapher postfix/cleanup[9882]: 2604DF9E9: message-id=<[email protected]>
Oct 2 20:36:18 grapher postfix/qmgr[19216]: 2604DF9E9: from=<[email protected]>, size=1009, nrcpt=1 (queue active)
Oct 2 20:36:18 grapher postfix/smtpd[9890]: disconnect from localhost[127.0.0.1]
Oct 2 20:36:18 grapher amavis[18089]: (18089-16) Passed CLEAN, MYNETS LOCAL [127.0.0.1] [127.0.0.1] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: UPKldCd9oWtH, Hits: -10, size: 554, queued_as: 2604DF9E9, 377 ms
Oct 2 20:36:18 grapher postfix/smtp[9887]: B6515F9E6: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.46, delays=0.06/0.01/0/0.38, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=18089-16, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 2604DF9E9)
Oct 2 20:36:18 grapher postfix/qmgr[19216]: B6515F9E6: removed
Oct 2 20:36:18 grapher postfix/smtp[9891]: 2604DF9E9: to=<[email protected]>, relay=gmail-smtp-in.l.google.com[74.125.39.26]:25, delay=0.38, delays=0.01/0.01/0.13/0.22, dsn=2.0.0, status=sent (250 2.0.0 OK 1317580578 3si5767317faz.171)
Oct 2 20:36:18 grapher postfix/qmgr[19216]: 2604DF9E9: removed

“Choose a job you like, and you will never have to work a day of your life”
“Looking at small advantages prevents great affairs from being accomplished”

"Great power comes with great electricity bills"
"The fact that there's a highway to Hell but only a stairway to Heaven says a lot about
anticipated traffic volume"
"Fate: protects fools, little children, and ships named NCC-1701"
 
Odgovor na temu

cerveni
Zoran Cerveni
IT Manager
Zemun

Član broj: 89734
Poruke: 130

Sajt: cerveni.linuxd.org


+10 Profil

icon Re: postfix how to, mali mail server02.10.2011. u 19:44 - pre 152 meseci
Code:
relay domain je jako dobar samo on ne služi baš tome što si ti naveo.

Recimo da imam unutar firme jos neki domen koji opslužuje drugi mail server i usput imam VPN tunel prema njemu.

Zahtev je da mailovi nesmetano prolaze ali ne preko interneta već direktno onda navodim relay domain za taj domen i upisujem IP adresu.
sve ostalo ide komunikacija moj server i destinacioni mail server.

Drugi način primene relay domai:

Nemam statičku IP adresu većina servera odbija da primi mail od mene jer nemam sve zapise unutar DNS-a onda tu navodim IP adresu ISP servera i svi
mailovi idu preko mog ISP-a.

Treba da ostaviš prazno za RELAY jer onda tvoj server uz pomoć DNS traži destinacioni mail server i uspostavlja vezu direktno.

Code:

command_directory         = /usr/sbin
daemon_directory         = /usr/libexec/postfix
sendmail_path             = /usr/sbin/sendmail.postfix
newaliases_path             = /usr/bin/newaliases.postfix
mailq_path                 = /usr/bin/mailq.postfix
setgid_group             = postdrop
html_directory             = no
manpage_directory         = /usr/share/man
sample_directory             = /usr/share/doc/postfix-2.1.5/samples
readme_directory         = /usr/share/doc/postfix-2.1.5/README_FILES

mail_owner                 = postfix

myhostname             = neki.domen.com
myorigin                 = $mydomain
inet_interfaces             = all

##    Ovo je relay mail mydestination ne treba da se popuni
mydestination             = 
local_recipient_maps         =

#############################################################################################################################
## Dodato sa sajta: http://www.knowplace.org/pages...h_postfix.php#relay_recipients
#############################################################################################################################
local_transport             = error:local mail delivery is disabled
parent_domain_matches_subdomains     = debug_peer_list, smtpd_access_maps
relay_recipient_maps         = hash:/etc/postfix/maps/relay_recipients.map
show_user_unknown_table_name     = no
smtpd_recipient_restrictions     = permit_mynetworks, reject_unauth_destination ,    check_policy_service inet:127.0.0.1:10040
#############################################################################################################################
#        TEST
#    http://www.mailradar.com/openrelay/
#    http://www.mxtoolbox.com/SuperTool.aspx?action=mx%3adomen.com
#
#    Radi kako treba ali ne radi MRTG 
#
#############################################################################################################################

mynetworks             = 192.168.0.0/16 127.0.0.1/32 IP.200.115.124/32 IP.65.196.24/32 IP.200.115.12/32
relay_domains             = domen.com domen.rs domen.co.rs

#relayhost                 = [192.168.IP.210]
smtpd_banner             = $myhostname

message_size_limit         = 20480000
disable_vrfy_command         = yes
smtpd_helo_required         = yes
smtpd_delay_reject         = yes
strict_rfc821_envelopes     = yes
address_verify_negative_cache     = yes
address_verify_sender         = [email protected]
smtp_skip_4xx_greeting         = yes
smtp_skip_5xx_greeting         = yes
maximal_queue_lifetime         = 2d
delay_warning_time             = 2h
content_filter             = lmtp:127.0.0.1:10025    

header_checks             = regexp:/etc/postfix/restrikcije/mime_header_checks.maps
transport_maps             = hash:/etc/postfix/maps/transport.map
relocated_maps             = hash:/etc/postfix/maps/relocated.map
canonical_maps             = hash:/etc/postfix/maps/canonical.map
#virtual_alias_maps         = hash:/etc/postfix/maps/virtual.map
alias_maps                 = hash:/etc/aliases
alias_database             = hash:/etc/aliases
    

##    Ovo je postavljeno radi TLS/SASL autentikacije

smtpd_sasl_local_domain         =
smtpd_sasl_auth_enable         = yes
smtpd_sasl_security_options             = noanonymous
broken_sasl_auth_clients         = yes
smtpd_tls_auth_only             = no
smtp_use_tls                 = yes
smtpd_use_tls                     = yes
smtp_tls_note_starttls_offer             = yes
smtpd_tls_key_file             = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file             = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile                    = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel             = 0
smtpd_tls_received_header         = yes
smtpd_tls_session_cache_timeout     = 3600s
tls_random_source             = dev:/dev/urandom

smtpd_helo_restrictions         =     permit_mynetworks,
                        check_helo_access regexp:/etc/postfix/restrikcije/whitelist.maps,
#                        reject_unknown_helo_hostname,                        
                        reject_non_fqdn_hostname,
                        reject_invalid_hostname,
                         check_helo_access regexp:/etc/postfix/restrikcije/helo_rejections.maps,
#                        check_policy_service inet:127.0.0.1:12525,
                        check_policy_service inet:127.0.0.1:10040
#                        reject

smtpd_sender_restrictions         =     permit_mynetworks,
                        check_sender_access regexp:/etc/postfix/restrikcije/whitelist.maps
#                        reject_non_fqdn_sender,
#                        reject_unknown_sender_domain,
#                        reject

smtpd_etrn_restrictions         =     reject

smtpd_client_restrictions         =     permit_mynetworks,
                        check_client_access regexp:/etc/postfix/restrikcije/whitelist.maps,
                        check_client_access regexp:/etc/postfix/restrikcije/rejections.maps
                        

smtpd_data_restrictions         =    reject_unauth_pipelining,
                        reject_multi_recipient_bounce

masquerade_domains             = domen.com

#always_bcc                 = [email protected]

biff                     = no

smtpd_recipient_limit         = 10
#swap_bangpath             = no
append_dot_mydomain         = no
#append_at_myorigin         = no
allow_percent_hack         = no
allow_untrusted_routing     = no
hopcount_limit             = 20
in_flow_delay             = 5
smtpd_error_sleep_time     = 3s
smtpd_soft_error_limit         = 3
smtpd_hard_error_limit         = 5
smtpd_junk_command_limit     = 5

unknown_local_recipient_reject_code     = 450 

debug_peer_list             = 
debug_peer_level         = 2
debugger_command         =    PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
                         xxgdb $daemon_directory/$process_name $process_id & sleep 5


Ovo ti je postavka MAIL-GATEWAY servera bez korisnika gde se navodi RELAY domain za domene koje ti držiš a razradu gde će biti prosleđeni ide preko transport.maps

transport.maps izgleda ovako
Code:

domen.com    smtp:192.168.IP.2
domen.rs    smtp:192.168.IP.123
domen.co.rs    smtp:192.IP.IP.111





[Ovu poruku je menjao cerveni dana 02.10.2011. u 21:07 GMT+1]

[Ovu poruku je menjao cerveni dana 02.10.2011. u 21:11 GMT+1]
 
Odgovor na temu

Jbyn4e

Član broj: 422
Poruke: 6049
95.180.97.*



+257 Profil

icon Re: postfix how to, mali mail server02.10.2011. u 22:52 - pre 152 meseci
Citat:
inace neko mi je danas poslao test mail, da izvestim, uspesno primljen, problem imam sa slanjem :P

To bio ja, samo da znas... nisam znao da ne radi slanje, al' ajd' rek'o da testiramo primanje :L)


Kad sve ostalo zakaže, pročitaj uputstvo...
 
Odgovor na temu

zeenmc
Nedeljko Scepanovic
Beograd City

Član broj: 54186
Poruke: 419
*.dynamic.isp.telekom.rs.



+22 Profil

icon Re: postfix how to, mali mail server02.10.2011. u 23:30 - pre 152 meseci
izbrisao sam onaj relay_domain, al opet i dalje isto, ista greska se javlja, nisam upoznat s mail greskama, al ono, ja sam mislio da treba neki nad-mail da stavim u main.conf da bi radilo, s obzirom da sam ovo uradio s iRedMail skriptom, nemam pojma sta je poslo po zlu :(
CCNP Security, CCNA R&S, CCNA Security, CCNA Voice
LinuxIsFree
 
Odgovor na temu

cerveni
Zoran Cerveni
IT Manager
Zemun

Član broj: 89734
Poruke: 130

Sajt: cerveni.linuxd.org


+10 Profil

icon Re: postfix how to, mali mail server03.10.2011. u 00:02 - pre 152 meseci
Postavi main.cf da pogledamo (promeni ip adrese i ime domena ako hoces nisu toliko bitni)
 
Odgovor na temu

zeenmc
Nedeljko Scepanovic
Beograd City

Član broj: 54186
Poruke: 419
*.dynamic.isp.telekom.rs.



+22 Profil

icon Re: postfix how to, mali mail server03.10.2011. u 06:14 - pre 152 meseci
Code:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname


smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# 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

# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/iRedMail_CA.pem
smtpd_tls_key_file = /etc/ssl/private/iRedMail.key
smtpd_use_tls=yes
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.

myhostname = freeland.brokenbyte.org
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
myorigin = freeland.brokenbyte.org
#mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
relayhost = 
mynetworks = 127.0.0.0/8
mailbox_command = /usr/lib/dovecot/deliver
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_alias_domains = 
mydomain = brokenbyte.org
inet_protocols = ipv4
mynetworks_style = subnet
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_reject_unlisted_recipient = yes
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
delay_warning_time = 0h
policy_time_limit = 3600
maximal_queue_lifetime = 1d
bounce_queue_lifetime = 1d
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $smtpd_sender_restrictions
smtp_data_init_timeout = 240s
smtp_data_xfer_timeout = 600s
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated, check_helo_access pcre:/etc/postfix/helo_access.pcre
queue_run_delay = 300s
minimal_backoff_time = 300s
maximal_backoff_time = 4000s
enable_original_recipient = no
disable_vrfy_command = yes
home_mailbox = Maildir/
allow_min_user = no
message_size_limit = 15728640
virtual_minimum_uid = 1001
virtual_uid_maps = static:1001
virtual_gid_maps = static:1001
virtual_mailbox_base = /var/vmail
transport_maps = proxy:mysql:/etc/postfix/mysql/transport_maps_user.cf, proxy:mysql:/etc/postfix/mysql/transport_maps_domain.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/virtual_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/catchall_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_catchall_maps.cf
sender_bcc_maps = proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_domain.cf, proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf
recipient_bcc_maps = proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_domain.cf, proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_user.cf
relay_domains =  $mydestination
#relay_domains = smtp.maksnet.org ,  $mydestination , proxy:mysql:/etc/postfix/mysql/relay_domains.cf

smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql/sender_login_maps.cf
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = 
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_authenticated_header = no
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, check_policy_service inet:127.0.0.1:7777, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_policy_service inet:127.0.0.1:10031
smtpd_tls_security_level = may
smtpd_enforce_tls = no
smtpd_tls_loglevel = 0
smtpd_tls_CAfile = /etc/ssl/certs/iRedMail_CA.pem
tls_random_source = dev:/dev/urandom
tls_daemon_random_source = dev:/dev/urandom
#
# Uncomment the following line to enable policyd sender throttle.
#
#smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10032
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
smtpd_sasl_type = dovecot
smtpd_sasl_path = ./dovecot-auth
content_filter = smtp-amavis:[127.0.0.1]:10024
smtp-amavis_destination_recipient_limit = 1
#

CCNP Security, CCNA R&S, CCNA Security, CCNA Voice
LinuxIsFree
 
Odgovor na temu

cerveni
Zoran Cerveni
IT Manager
Zemun

Član broj: 89734
Poruke: 130

Sajt: cerveni.linuxd.org


+10 Profil

icon Re: postfix how to, mali mail server03.10.2011. u 08:09 - pre 152 meseci
Sta stoji u /etc/mailname

# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

trebalo bi da bude:

$myorigin = $mydomain
 
Odgovor na temu

zeenmc
Nedeljko Scepanovic
Beograd City

Član broj: 54186
Poruke: 419
*.dynamic.isp.telekom.rs.



+22 Profil

icon Re: postfix how to, mali mail server03.10.2011. u 08:30 - pre 152 meseci
freeland.brokenbyte.org

samo ovo nista vise

sad sam slao sebi na yahoo mailove, kada posaljem tipa po jedno slovo u subject i u telu poruke, ode u spam, a kad je "pravi" mail ode u inbox, znaci sigurno mailovi idu od mene, al zasto ih gmail odbija :(

[Ovu poruku je menjao zeenmc dana 03.10.2011. u 10:05 GMT+1]
CCNP Security, CCNA R&S, CCNA Security, CCNA Voice
LinuxIsFree
 
Odgovor na temu

cerveni
Zoran Cerveni
IT Manager
Zemun

Član broj: 89734
Poruke: 130

Sajt: cerveni.linuxd.org


+10 Profil

icon Re: postfix how to, mali mail server03.10.2011. u 09:28 - pre 152 meseci
Zameni myorigin umesto da pise ime servera treba da stoji ime domena

ovako ti mail prolazi neki.user@hostname a ne radis maskaradu


myorigin = brokenbyte.org

ili dodaj unutar main.cf

masquerade_domains = brokenbyte.org

 
Odgovor na temu

zeenmc
Nedeljko Scepanovic
Beograd City

Član broj: 54186
Poruke: 419
*.dynamic.isp.telekom.rs.



+22 Profil

icon Re: postfix how to, mali mail server03.10.2011. u 10:08 - pre 152 meseci
jok nece, isto se javlja greska kod slanja na gmail, a kod yahoo-a prolazi al sa zadrskom, znaci ne stigne momentalno, nego posle par minuta
CCNP Security, CCNA R&S, CCNA Security, CCNA Voice
LinuxIsFree
 
Odgovor na temu

cerveni
Zoran Cerveni
IT Manager
Zemun

Član broj: 89734
Poruke: 130

Sajt: cerveni.linuxd.org


+10 Profil

icon Re: postfix how to, mali mail server03.10.2011. u 10:22 - pre 152 meseci
Dobro, postavi debug_peer_level = 9 uradi posle toga postfix reload posalji mail na google uradi cat /var/log/maillog te koverzacije i postavi ovde.

Posalji mi mail na adresu koju sam ti poslao na PP.

 
Odgovor na temu

zeenmc
Nedeljko Scepanovic
Beograd City

Član broj: 54186
Poruke: 419
*.dynamic.isp.telekom.rs.



+22 Profil

icon Re: postfix how to, mali mail server03.10.2011. u 10:51 - pre 152 meseci
Ovo je jedan deo, u tom trenutku sam poslao 2 maila, jedan na gmail drugi na yahoo, e sad buni me ovo sto je refused to talk to me, vise mailova sam poslao tada ka yahoo, znam sigurno da su neki prosli, slao sam neke slike ka yahoo nalogu

Code:
Oct  3 10:06:01 freeland postfix/smtp[24103]: 35673A03A2: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.5, delays=0.13/0.01/0.01/1.3, dsn=2.0.0, status=sent (250 $
Oct  3 10:06:01 freeland postfix/qmgr[23695]: 35673A03A2: removed
Oct  3 10:06:02 freeland postfix/smtp[24108]: 617E0A03AE: host mta5.am0.yahoodns.net[98.137.54.237] refused to talk to me: 553 5.7.1 [BL21] Connections will not be accepted from 212.2$
Oct  3 10:06:02 freeland postfix/smtp[24108]: 617E0A03AE: host mta6.am0.yahoodns.net[98.137.54.238] refused to talk to me: 553 5.7.1 [BL21] Connections will not be accepted from 212.2$
Oct  3 10:06:02 freeland postfix/smtp[24108]: 617E0A03AE: host mta7.am0.yahoodns.net[66.94.236.34] refused to talk to me: 553 5.7.1 [BL21] Connections will not be accepted from 212.20$
Oct  3 10:06:03 freeland postfix/smtp[24108]: 617E0A03AE: host mta6.am0.yahoodns.net[66.94.236.34] refused to talk to me: 553 5.7.1 [BL21] Connections will not be accepted from 212.20$
Oct  3 10:06:03 freeland postfix/smtp[24108]: 617E0A03AE: to=<[email protected]>, relay=mta7.am0.yahoodns.net[98.137.54.238]:25, delay=2.3, delays=0.07/0.02/2.2/0, dsn=4.7.1, status=$
Oct  3 10:06:51 freeland postfix/smtpd[24094]: connect from localhost[127.0.0.1]
Oct  3 10:06:51 freeland postfix/smtpd[24094]: 72AA7A037B: client=localhost[127.0.0.1], sasl_method=LOGIN, [email protected]
Oct  3 10:06:51 freeland postfix/cleanup[24099]: 72AA7A037B: message-id=<[email protected]>
Oct  3 10:06:51 freeland postfix/qmgr[23695]: 72AA7A037B: from=<[email protected]>, size=1915, nrcpt=1 (queue active)
Oct  3 10:06:51 freeland roundcube: User [email protected] [192.168.1.15]; Message for [email protected]; 250: 2.0.0 Ok: queued as 72AA7A037B
Oct  3 10:06:51 freeland postfix/smtpd[24094]: disconnect from localhost[127.0.0.1]
cerveni@dziti,com Oct  3 10:06:52 freeland postfix/smtpd[24107]: connect from localhost[127.0.0.1]
Oct  3 10:06:52 freeland postfix/smtpd[24107]: 8868EA03B0: client=localhost[127.0.0.1]
Oct  3 10:06:52 freeland postfix/cleanup[24099]: 8868EA03B0: message-id=<[email protected]>
Oct  3 10:06:52 freeland postfix/qmgr[23695]: 8868EA03B0: from=<[email protected]>, size=2867, nrcpt=1 (queue active)
Oct  3 10:06:52 freeland postfix/smtpd[24107]: disconnect from localhost[127.0.0.1]
Oct  3 10:06:52 freeland amavis[1341]: (01341-12) Passed CLEAN, MYNETS/MYUSERS LOCAL [127.0.0.1] [127.0.0.1] <[email protected]> -> <[email protected]>, Message-ID: <a$


Code:

Poruka s greskom, kad sam crvenom poslao mail

<[email protected]>: host mx1.njegovmail.com[85.222.163.166] said: 554
    <212-200-205-68.dynamic.isp.telekom.rs[212.200.205.68]>: Client host
    rejected: SPAM check FQDN (in reply to RCPT TO command)


iz logova

Code:


Oct  3 11:44:06 freeland postfix/qmgr[2510]: A9DCEA05DB: from=<[email protected]>, size=1549, nrcpt=1 (queue active)
Oct  3 11:44:06 freeland amavis[1346]: (01346-01) Passed CLEAN, MYNETS/MYUSERS LOCAL [127.0.0.1] [127.0.0.1] <[email protected]> -> <[email protected]>, Message-ID: <$
Oct  3 11:44:06 freeland postfix/smtp[2587]: 68FA5A058F: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.7, delays=1.3/0.01/0.01/1.3, dsn=2.0.0, status=sent (250 2.0$
Oct  3 11:44:06 freeland postfix/qmgr[2510]: 68FA5A058F: removed
Oct  3 11:44:07 freeland postfix/smtp[2594]: A9DCEA05DB: to=<[email protected]>, relay=mx1.dziti.com[85.222.163.166]:25, delay=0.89, delays=0.08/0.01/0.65/0.15, dsn=5.0.0, status=boun$
Oct  3 11:44:07 freeland postfix/cleanup[2583]: A27C5A0604: message-id=<[email protected]>
Oct  3 11:44:07 freeland postfix/qmgr[2510]: A27C5A0604: from=<>, size=3760, nrcpt=1 (queue active)
Oct  3 11:44:07 freeland postfix/bounce[2596]: A9DCEA05DB: sender non-delivery notification: A27C5A0604
Oct  3 11:44:07 freeland postfix/qmgr[2510]: A9DCEA05DB: removed
Oct  3 11:44:08 freeland postfix/pipe[2597]: A27C5A0604: to=<[email protected]>, relay=dovecot, delay=0.71, delays=0.07/0.03/0/0.61, dsn=2.0.0, status=sent (delivered$
Oct  3 11:44:08 freeland postfix/qmgr[2510]: A27C5A0604: removed
Oct  3 11:44:18 freeland postfix/smtpd[2577]: connect from unknown[192.168.1.15]
Oct  3 11:44:18 freeland postfix/smtpd[2577]: NOQUEUE: reject: RCPT from unknown[192.168.1.15]: 553 5.7.1 <[email protected]>: Sender address rejected: not logged in;$
Oct  3 11:44:18 freeland postfix/smtpd[2577]: disconnect from unknown[192.168.1.15]



CCNP Security, CCNA R&S, CCNA Security, CCNA Voice
LinuxIsFree
 
Odgovor na temu

cerveni
Zoran Cerveni
IT Manager
Zemun

Član broj: 89734
Poruke: 130

Sajt: cerveni.linuxd.org


+10 Profil

icon Re: postfix how to, mali mail server03.10.2011. u 12:27 - pre 152 meseci
Čekaj jel imaš statičku IP adresu.

Ovde se kačiš sa dinamičke telekomove adrese.

Oct 3 11:43:59 mx1 postfix/smtpd[21775]: connect from 212-200-205-68.dynamic.isp.telekom.rs[212.200.205.68]
Oct 3 11:43:59 mx1 postfix/smtpd[21775]: NOQUEUE: reject: RCPT from 212-200-205-68.dynamic.isp.telekom.rs[212.200.205.68]: 554 <212-200-205-68.dynamic.isp.telekom.rs[212.200.205.68]>: Client host rejected: SPAM check FQDN; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<freeland.brokenbyte.org>
Oct 3 11:43:59 mx1 postfix/smtpd[21775]: disconnect from 212-200-205-68.dynamic.isp.telekom.rs[212.200.205.68]

Odbio te je content filter za dynamic

sve unutar mail headera može da se lažira osim to: jer treba neko da primi mail i ne može da se lažira connect jer to ne zavisi od toga kako se tvoj server
predstavlja već sa koje IP adrese dolazi. Slabije podešeni serveri puštaju mailove sa svih IP adresa ne proveravaju MX rekord u tvom slučaju MX rekord
ukazuje na jednu IP adresu a ti dolaziš sa druge i još povrh toga dinamičke.

 
Odgovor na temu

zeenmc
Nedeljko Scepanovic
Beograd City

Član broj: 54186
Poruke: 419
*.dynamic.isp.telekom.rs.



+22 Profil

icon Re: postfix how to, mali mail server03.10.2011. u 12:55 - pre 152 meseci
imam 3 pristupa ka internetu kuci, koristim samo 2, WISP preko koga dobijam static IP, i adsl preko kojeg su mi svi ostali kompjuteri u kuci, znaci samo su mi na staticu mikrotik i freeland, ja se nakacin na freeland preko laptopa koji je na adslu, sve ide preko neta, nista lokalno

sad sam ja zbunjen, opet sam ti poslao poruku na mail, i opet mi stigao mail s greskom, isto spominje dinamicku ip, laptop sam prebacio na staticku ip,traceroute mi kaze da idem kroz wifi net

[Ovu poruku je menjao zeenmc dana 03.10.2011. u 14:18 GMT+1]
CCNP Security, CCNA R&S, CCNA Security, CCNA Voice
LinuxIsFree
 
Odgovor na temu

cerveni
Zoran Cerveni
IT Manager
Zemun

Član broj: 89734
Poruke: 130

Sajt: cerveni.linuxd.org


+10 Profil

icon Re: postfix how to, mali mail server03.10.2011. u 13:40 - pre 152 meseci
pogledaj routing tabelu na mail serveru mora izlaziti preko statičke IP adrese na internet.

 
Odgovor na temu

zeenmc
Nedeljko Scepanovic
Beograd City

Član broj: 54186
Poruke: 419
*.brokenbyte.org.



+22 Profil

icon Re: postfix how to, mali mail server03.10.2011. u 13:51 - pre 152 meseci
E sad se osecaj ko majmun :P, izgleda da je to bio problem, uglavnom staticka ima jaci upload, al mali download, i po defaultu namestim da mi gateway bude 1.1 tj adsl, zbog instalacije programa tokom instalacije sistema (debian) al sam sad zaboravio da prebacim adresu na drugi ruter, smor nema sta :P al nisam obracao paznju na taj detalj jer imam apache na njemu, i jos neke stvari, i sve je funkcionisalo kako treba, evo stigao je mail na gmail...hvala ;) veceras kad dodjem kuci, ubijam debian, i instaliram od 0 postfix, inace bitna stvar, ako odlozim likvidaciju :P, sta mi preporucujete da se igram s ovim trenutnim sistemom ? kako mogu da proverim koliko mi je sistem odbacio smapova i te stvari taj deo administracije ? da li na njemu postoji clam av, ili to kao treba sam da dodam ?
CCNP Security, CCNA R&S, CCNA Security, CCNA Voice
LinuxIsFree
 
Odgovor na temu

cerveni
Zoran Cerveni
IT Manager
Zemun

Član broj: 89734
Poruke: 130

Sajt: cerveni.linuxd.org


+10 Profil

icon Re: postfix how to, mali mail server03.10.2011. u 14:30 - pre 152 meseci
ako si podigao IredMail imaš sve što ti treba
 
Odgovor na temu

[es] :: Linux/UNIX serveri i servisi :: postfix how to, mali mail server

Strane: < .. 1 2 3 4

[ Pregleda: 13277 | Odgovora: 79 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.