Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Użytkownik

Witam ,
chcialem postawic serwer poczty , ale nie bardzo mam jak postawic domene na serwie bo dynamic IP ... mam juz serwer poczty na home.pl ale szef chce miec backup wszystkich maili odebranych i wyslanych ... Userzy jak to userzy ,czasem ktos cos skasuje , komp sie rozsypie itd itp .. o ile z odebrana poczta nie ma problemu , tak jest problem z archiwizacja wyslanych ...
wiec mysle sobie ze zrobie to na zasadzie :
odbior poczty home.pl --> fetchmail -->dovecot — OE/outlook u usera w firmie - i to dziala :)
wysyl OE --> postfix z relayhost na home.pl i wlaczonym bcc ... i to nie dziala ... tzn nie do konca nie dziala smtp_generic_maps ... maile wychodza , nawet w zrodle jest return path testowy.pan@host.home.pl ale jak dam reply w kliencie pocztowym to wyskakuje mi testowy.pan@MailServ
moje configi :
main.cf
# 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 (Ubuntu)
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
# 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
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_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 = localhost
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = localhost, localhost.localdomain
mynetworks = 192.168.1.0/24
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only
inet_protocols = all
##########################################
##### non debconf entries start here #####
##### client TLS parameters #####
smtp_tls_loglevel=1
smtp_tls_security_level=encrypt
smtp_sasl_auth_enable=yes
smtp_sasl_password_maps=hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
##### map jane@localhost to jane.doe@gmail.com #####
smtp_generic_maps=hash:/etc/postfix/generic
relayhost=[host.home.pl]:587master.cf
#
# 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 - - - - 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}Plik Generic
# Correlate the local email addresses of the users with the emails set at the ISP #john@local.domain johndoe@terra.com.br #jane@local.domain janedoe@terra.com.br testowy@localhost testowy.pan@host.home.pl
Plik sasl_passwd
# /etc/postfix/sasl_passwd [host.home.pl]:587 testowy.pan@host.home.pl:haslo
//edit :
teraz syslog wyrzuca mi cos takiego tj doinstalowalem libsasl2-modules i zaskoczylo .. tzn wysyla maile ... skad te warningi ?
:
Nov 22 15:52:17 localdomain postfix/pickup[4634]: 0D1C913E46A: uid=1001 from=<testowy> Nov 22 15:52:17 localdomain postfix/cleanup[4644]: 0D1C913E46A: message-id=<20101122145217.GI3477@MailServ> Nov 22 15:52:17 localdomain postfix/qmgr[4635]: 0D1C913E46A: from=<testowy@localhost>, size=433, nrcpt=1 (queue active) Nov 22 15:52:17 localdomain postfix/tlsmgr[4647]: warning: request to update table btree:/var/spool/postfix/smtpd_scache in non-postfix directory /var/spool/ postfix Nov 22 15:52:17 localdomain postfix/tlsmgr[4647]: warning: redirecting the request to postfix-owned data_directory /var/lib/postfix Nov 22 15:52:17 localdomain postfix/tlsmgr[4647]: warning: request to update table btree:/var/spool/postfix/smtp_scache in non-postfix directory /var/spool/p ostfix Nov 22 15:52:17 localdomain postfix/tlsmgr[4647]: warning: redirecting the request to postfix-owned data_directory /var/lib/postfix Nov 22 15:52:22 localdomain postfix/smtp[4646]: setting up TLS connection to host.home.pl[xx.xxx.xxx.xx]:587] Nov 22 15:52:24 localdomain postfix/smtp[4646]: certificate verification failed for host.home.pl[xx.xxx.xxx.xx]:587] untrusted issuer /C=SE/O=AddTrust AB/ OU=AddTrust External TTP Network/CN=AddTrust External CA Root Nov 22 15:52:26 localdomain postfix/smtp[4646]: Untrusted TLS connection established to host.home.pl[xx.xxx.xxx.xx]:587] TLSv1 with cipher RC4-SHA (128/12 8 bits) Nov 22 15:52:36 localdomain postfix/smtp[4646]: 0D1C913E46A: to=<ktostam@gmail.com>, relay=host.home.pl[xx.xxx.xxx.xx]:587], delay=19, delays=0.02/0.02/1 5/4.4, dsn=2.0.0, status=sent (250 2.0.0 Message accepted.) Nov 22 15:52:36 localdomain postfix/qmgr[4635]: 0D1C913E46A: removed
Ostatnio edytowany przez fakevilg (2010-11-22 15:58:21)
Offline


Członek z Ramienia



Przyznaję gubię się podmienionych nazwach domen.
Jednak niezależnie od tego jak się logujesz do smtp nazwa użytkownika jest uzupełniana o nazwę domeny określoną w mailname. Zakrzyżykowanie opcji powoduje tylko tyle, że użyta zostaje wartość domyślna (hostname?, localhost?). Spróbuj po prostu ustawić pole from/reply/email w ustawieniach programu pocztowego i to jak mi się wydaje rozwiąże problem. Inną metodą jest prawidłowe określenie nawy domeny w postfix wtedy pole to będzie uzupełnione automagicznie.
Offline
Użytkownik

Dzieki ,fakt to rozwiazalo problem jesli chodzi o pole From ... jednak w tym momencie padl mi dovecot , o ile na samym poczatku odbieral maile z outlooka tak w tym momencie nie chce ,ani na 995 ,110 , z uwierzytelnianiem oraz i bez ... mutt na serwerze chodzi prawidlowo .. jesli wpisze adres domeny ktora jest nie zaparkowana na tym serwerze nie bedzie problemow ?
podnienione nazwy domen sa w celu zeby mi jakis spambot nie przechwycil maili ... za XX jest adres IP a host.home.pl= host w tym przypadku tylko zamiast " host " jest nazwa firmy .
Ostatnio edytowany przez fakevilg (2010-11-23 12:47:52)
Offline


Członek z Ramienia



odnośnie warningów jeżeli nie ma tam nic ważnego usuń te pliki (dla bezpieczeństwa przenieść możesz) i pozwól postfixowi je założyć. Upewnij się też czy postfix jest właścicielem katalogów których pracuje.
gubię się bo nie trzymasz się jednej konwencji:
testowy.pan@MailSer
testowy.pan@host.home.pl
testowy@localhost
używaj tylko @expample.com i @localhost :)
Dovecot na pewno gdzieś pluje w logach demona, mail, auth co go boli - ewentualnie gadatliwość mu zwiększ to powie co go boli.
Offline