Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: php.ini nastavení vzdáleného smtp [vyřešeno]  (Přečteno 19096 krát)

urgo272

  • Aktivní člen
  • *
  • Příspěvků: 111
php.ini nastavení vzdáleného smtp [vyřešeno]
« kdy: 19 Dubna 2015, 19:15:36 »
Tak tady mám další problém :-(. Potřeboval bych poradit jak nastavit vzdálený smtp server pro php.ini
Mám aplikaci kde je e-mail formulář, ale nemám nastavený smtp. Server mám ale na tento webserver smtp instalovat nechci, potřeboval bych vzdálený s příhlášením. Našel jsem tady instalaci PEAR mailu
http://www.markstechstuff.com/2009/04/installing-pear-mail-for-php-on-ubuntu.html , a pak jak ho použít, jenže vůbec nevím kam ten PHP kód mam dát ?

http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm

Vím že je to asi lama dotaz ale nikdy jsem to nedělal a jde mi vlastně jen o nakonfigurování web serveru k odesílání pošty z aplikace. Jak to řešíte vy ? Může mi někdo poradit jak to rozchodit, podmínkou je vzdálený smtp s ověřováním....

Díky moc předem za jakoukoliv radu
« Poslední změna: 20 Dubna 2015, 21:19:27 od Petr Merlin Vaněček »

ETNyx

  • Aktivní člen
  • *
  • Příspěvků: 425
Re:php.ini nastavení vzdáleného smtp
« Odpověď #1 kdy: 19 Dubna 2015, 19:30:54 »
https://github.com/PHPMailer/PHPMailer

Citace
Integrated SMTP support - send without a local mail server
Send emails with multiple TOs, CCs, BCCs and REPLY-TOs
Multipart/alternative emails for mail clients that do not read HTML email
Support for UTF-8 content and 8bit, base64, binary, and quoted-printable encodings
SMTP authentication with LOGIN, PLAIN, NTLM and CRAM-MD5 mechanisms over SSL and TLS transports
Error messages in 46 languages!
DKIM and S/MIME signing support
Compatible with PHP 5.0 and later
Much more!
jabber: etnyx@jabbim.cz

urgo272

  • Aktivní člen
  • *
  • Příspěvků: 111
Re:php.ini nastavení vzdáleného smtp
« Odpověď #2 kdy: 19 Dubna 2015, 19:47:10 »
Jj, tohle jsem taky viděl, ale upřímě, prostě nemam vůbec potuchy jak to dát do provozu...
Zkusim kouknout na tohle video...
http://www.inmotionhosting.com/support/email/send-email-from-a-page/using-phpmailer-to-send-mail-through-php

ETNyx

  • Aktivní člen
  • *
  • Příspěvků: 425
Re:php.ini nastavení vzdáleného smtp
« Odpověď #3 kdy: 19 Dubna 2015, 20:21:39 »
nejlepší je si nad tím ještě napsat nějakou svojí vlastní funkci a pak jen volat ji, je to mnohem přehlednější a člověk pak nemusím obevovat znova kolo když to potřebuje znova použít :-) takže třeba nějak takhle

Kód: [Vybrat]
<?php
function send_mail($to$subject$body$charset "utf-8"$lang "cz"$html true) {

require_once("class.phpmailer.php");

$sender = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch
$sender->IsSMTP(); // telling the class to use SMTP
$sender->SetLanguage($lang);

try {
$sender->Host ""; // SMTP server
$sender->SMTPDebug 0; // enables SMTP debug information (for testing)
$sender->SMTPAuth true; // enable SMTP authentication
$sender->SMTPSecure "tls";
$sender->Port "";
$sender->Username ""; // SMTP account username
$sender->Password ""; // SMTP account password
$sender->From "";
$sender->FromName "";

$sender->AddAddress($to);
$sender->Subject $subject;
if($html === true) {
$sender->AltBody "Aby jste mohli přečíst tento e-mail, prosím použijte prohlížeč kompatibilní s HTML, děkujeme."
$sender->MsgHTML($body);
} else {
$sender->Body $body;
}
$sender->WordWrap 125;
$sender->CharSet $charset;


if(!$sender->Send()) {
echo $sender->ErrorInfo;
}
} catch (phpmailerException $e) {
echo $e->errorMessage(); //Pretty error messages from PHPMailer
} catch (Exception $e) {
echo $e->getMessage(); //Boring error messages from anything else!
}
}

?>

jabber: etnyx@jabbim.cz

urgo272

  • Aktivní člen
  • *
  • Příspěvků: 111
Re:php.ini nastavení vzdáleného smtp
« Odpověď #4 kdy: 19 Dubna 2015, 20:28:47 »
Děkuju hrozně moc za pomoc !!! Jen zase jedna lamí otázka, jak tohle mam použít ? Jde mi o to, že už mam aplikaci napsanou, na jiném placeném hostingu mi to fungovalo pouze tak že jsem vyplnil webovej formulář a ten se jen odeslal, protože na hostingu už nějak bylo předvyplněno nastavení v php.ini (aspoň myslím). Jak to tedy použít ?

Díky moc za trpělivost :-)

ETNyx

  • Aktivní člen
  • *
  • Příspěvků: 425
Re:php.ini nastavení vzdáleného smtp
« Odpověď #5 kdy: 19 Dubna 2015, 21:06:55 »
Ten hosting pravdepodobne využívá svuj vlastni smtp server, tenhle skript bude pouzivat ten kterej mu reknes takze to klidne muze byt gmail ucet nebo nejaky vlastni smtp server. Vlastne to je jako by jsi posilal postu ze sveho klienta takze to teoreticky nespadně do spamu protože pošta odejde s podepsaným/správným DKIM/SPF. Samozřejmně tomu idelane vyhrad novy ucet protoze tady bude ulozeny heslo v plaintextu,..

v ty funkci je potreba vyplnit ty prazdny polozky jako
Kód: [Vybrat]
$sender->Host = "gmail.com"; a další,... vyplnit spravne cestu k te knihovne
Kód: [Vybrat]
require_once("class.phpmailer.php"); a pak už jen staci při odeslání formuláře zavolat
Kód: [Vybrat]
send_mail("kam@to.bude.cz", "Kontaktní formulář té a té stránky", "Nekdo se ptá".$_POST["otazka"]); místo toho co tam je ted (predpokladam ze volani mail();)


jediný co bude asi potřeba v php poladit je povolení rozšíření ssl, odkomentovat
Kód: [Vybrat]
extension=openssl.so samozřejmně resetnout apache (tedy pokud se bude používat šifrovaný spojení stím smtp serverem, jinak to nebude potřeba) což ten skript předpokládá viz nastavení
Kód: [Vybrat]
$sender->SMTPSecure = "tls";
jabber: etnyx@jabbim.cz

urgo272

  • Aktivní člen
  • *
  • Příspěvků: 111
Re:php.ini nastavení vzdáleného smtp
« Odpověď #6 kdy: 19 Dubna 2015, 22:12:41 »
Jj, to vyplnění chápu :-D asi jako jediný, jenže pak mam tu aplikaci a nikde nevidím to "zavolání" funkce...

Kód: [Vybrat]
<?php
// Start session.
session_start();

// Set a key, checked in mailer, prevents against spammers trying to hijack the mailer.
$security_token $_SESSION['security_token'] = uniqid(rand());

if ( ! isset($_SESSION['formMessage'])) {
$_SESSION['formMessage'] = 'Zde pros&iacute;m uvěďte v&scaron;echny relevantn&iacute; informace o přid&aacute;van&eacute;m kontaktu. Můžete přiložit i foto či video.';
}

if ( ! isset($_SESSION['formFooter'])) {
$_SESSION['formFooter'] = ' ';
}

if ( ! isset($_SESSION['form'])) {
$_SESSION['form'] = array();
}

function check($field$type ''$value '') {
$string "";
if (isset($_SESSION['form'][$field])) {
switch($type) {
case 'checkbox':
$string 'checked="checked"';
break;
case 'radio':
if($_SESSION['form'][$field] === $value) {
$string 'checked="checked"';
}
break;
case 'select':
if($_SESSION['form'][$field] === $value) {
$string 'selected="selected"';
}
break;
default:
$string $_SESSION['form'][$field];
}
}
return $string;
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta charset="utf-8" />

<!-- User defined head content such as meta tags and encoding options -->

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="RapidWeaver" />


<!-- User defined head content -->


<!-- Meta tags -->
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />

<title></title>

<!-- Load some fonts from Google's Font service -->
<link href='http://fonts.googleapis.com/css?family=Open Sans:400,300,800|Noto Serif|Arvo' rel='stylesheet' type='text/css'>

<!-- CSS stylesheets reset -->
  <link rel="stylesheet" type="text/css" media="all" href="../rw_common/themes/tesla_pro/consolidated-1.css" />


<!-- CSS for the Foundation framework's CSS that handles the responsive columnized layout -->
 

  <!-- Main Stylesheet -->


  <!-- Loads Font Awesome v4.1.0 CSS from CDN -->
  <link href="http://netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">

<!-- RapidWeaver Color Picker Stylesheet -->
 

  <!-- Theme specific media queries -->


<!-- Base RapidWeaver javascript -->
<script type="text/javascript" src="../rw_common/themes/tesla_pro/javascript.js"></script>

<!-- jQuery 1.8 is included in the theme internally -->
  <script src="../rw_common/themes/tesla_pro/js/jquery.min.js"></script>

  <!-- Elixir specific javascript, along with jQuery Easing and a few other elements -->
  <script src="../rw_common/themes/tesla_pro/js/elixir.js"></script>

<!-- Handles styling for custom banners using RapidWeaver's Resources area. -->
<style type="text/css">
.banner1 { background-image: url(../resources/banner1.jpg); }
.banner2 { background-image: url(../resources/banner2.jpg); }
.banner3 { background-image: url(../resources/banner3.jpg); }
.banner4 { background-image: url(../resources/banner4.jpg); }
.banner5 { background-image: url(../resources/banner5.jpg); }
.banner6 { background-image: url(../resources/banner6.jpg); }
.banner7 { background-image: url(../resources/banner7.jpg); }
.banner8 { background-image: url(../resources/banner8.jpg); }
.banner9 { background-image: url(../resources/banner9.jpg); }
.banner10 { background-image: url(../resources/banner10.jpg); }
.banner11 { background-image: url(../resources/banner11.jpg); }
.banner12 { background-image: url(../resources/banner12.jpg); }
.banner13 { background-image: url(../resources/banner13.jpg); }
.banner14 { background-image: url(../resources/banner14.jpg); }
.banner15 { background-image: url(../resources/banner15.jpg); }
.banner16 { background-image: url(../resources/banner16.jpg); }
.banner17 { background-image: url(../resources/banner17.jpg); }
.banner18 { background-image: url(../resources/banner18.jpg); }
.banner19 { background-image: url(../resources/banner19.jpg); }
.banner20 { background-image: url(../resources/banner20.jpg); }
</style>

<!-- Style variations -->
<script type="text/javascript" src="../rw_common/themes/tesla_pro/js/toggles/scroll_down_bounce.js"></script>
<script type="text/javascript" src="../rw_common/themes/tesla_pro/js/banner/custom_banner_2.js"></script>
<script type="text/javascript" src="../rw_common/themes/tesla_pro/js/sidebar/sidebar_hidden.js"></script>


<!-- User defined styles -->
<style type="text/css" media="all">header {
        background-image: url(../resources/banner2.jpg);
    }</style>

<!-- User defined javascript -->


<!-- Plugin injected code -->



</head>

<body>

<header role="banner">

<!-- Site Logo -->
<div id="logo" data-0="opacity: 1;" data-top-bottom="opacity: 0;" data-anchor-target="#logo">
   
</div>

<div id="title_wrapper">
<!-- Site Title -->
<h1 id="site_title" data-0="opacity: 1; top:0px;" data-600="opacity: 0; top: 80px;" data-anchor-target="#site_title">

</h1>

<!-- Site Slogan -->
<h2 id="site_slogan" data-0="opacity: 1; top:0px;" data-600="opacity: 0; top: 80px;" data-anchor-target="#site_slogan">
Přidej m&iacute;sto
</h2>

<!-- Scroll down button -->
<div id="scroll_down_button" data-0="opacity: 1; top:0px;" data-400="opacity: 0; top: 100px;" data-anchor-target="#scroll_down_button">
<i class="fa fa-angle-down"></i>
</div>
</div>


<!-- Top level navigation -->
<div id="navigation_bar">
<div class="row site_width">
<div class="large-12 columns">
<nav id="top_navigation"><ul><li><a href="../" rel="">Domů</a></li><li><a href="../page0/" rel="">Idea</a></li><li><a href="../page4/" rel="">Portfolio</a></li><li><a href="./" rel="" id="current">Kontaktní formulář</a></li><li><a href="../rapidmaps/" rel="">Mapa</a></li></ul></nav>
</div>
</div>
</div>

<div id="navigation_stopper"></div>
</header>


<!-- Sub-navigation -->
<div id="sub_navigation_bar">
<div class="row site_width">
<div class="large-12 columns">
<nav id="sub_navigation"><ul></ul></nav>
</div>
</div>
</div>


<!-- Mobile Navigation -->
<div id="mobile_navigation_toggle">
<i id="mobile_navigation_toggle_icon" class="fa fa-bars"></i>
</div>
<nav id="mobile_navigation">
<ul><li><a href="../" rel="">Domů</a></li><li><a href="../page0/" rel="">Idea</a></li><li><a href="../page4/" rel="">Portfolio</a></li><li><a href="./" rel="" id="current">Kontaktní formulář</a></li><li><a href="../rapidmaps/" rel="">Mapa</a></li></ul>
</nav>



<!-- Main Content area and sidebar -->
<div class="row site_width" id="container">

<!-- ExtraContent Area 1 -->
<section id="extraContent1">
<div class="large-12 columns">
<div id="extraContainer1"></div>
</div>

<div class="clearer"></div>
</section>

<section id="content"class="large-8 columns">

<div class="message-text"><?php echo $_SESSION['formMessage']; unset($_SESSION['formMessage']); ?></div><br />

<form action="./files/mailer.php" method="post" enctype="multipart/form-data">
<div>
<label>Vaše jméno</label> *<br />
<input class="form-input-field" type="text" value="<?php echo check('element0'); ?>" name="form[element0]" size="40"/><br /><br />

<label>Email</label> *<br />
<input class="form-input-field" type="text" value="<?php echo check('element1'); ?>" name="form[element1]" size="40"/><br /><br />

<label>Předmět</label> *<br />
<input class="form-input-field" type="text" value="<?php echo check('element2'); ?>" name="form[element2]" size="40"/><br /><br />

<label>Zpráva</label> *<br />
<textarea class="form-input-field" name="form[element3]" rows="8" cols="38"><?php echo check('element3'); ?></textarea><br /><br />

<label>Příloha</label> <br />
<input type="file" name="element4" /><br /><br />

<div style="display: none;">
<label>Spam Protection: Please don't fill this in:</label>
<textarea name="comment" rows="1" cols="1"></textarea>
</div>
<input type="hidden" name="form_token" value="<?php echo $security_token?>" />
<input class="form-input-button" type="reset" name="resetButton" value="Reset" />
<input class="form-input-button" type="submit" name="submitButton" value="Odeslat" />
</div>
</form>

<br />
<div class="form-footer"><?php echo $_SESSION['formFooter']; unset($_SESSION['formFooter']); ?></div><br />

<?php unset($_SESSION['form']); ?>
</section>
<aside id="sidebar" class="large-4 columns">
<h4 id="sidebar_title"></h4>
<div id="sidebar_content"></div>
<div id="archives">

</div>
</aside>
</div>

<!-- ExtraContent Area 2 -->
<section id="extraContent2" class="row site_width">
<div class="large-12 columns">
<div id="extraContainer2"></div>
</div>

<div class="clearer"></div>
</section>

<!-- Footer -->
<footer class="row site_width">
<div id="footer_content" class="large-12 columns">
<!-- Social Badges -->
<div id="social_badges"></div>
<!-- Breadcrumb Trail -->
<div id="breadcrumb_container">
<i class="fa fa-folder-open-o"></i> <span id="breadcrumb"></span>
</div>
&copy; 2015
</div>
</footer>

<div id="scroll_up_button"><i class="fa fa-angle-up"></i></div>

<!-- Handles loading Skrollr, which helps in animating portions of the header area. -->
<!-- We check to see if the user is on an mobile device or not, and only serve up -->
<!-- the animations on non-mobile devices. -->
<script>
$elixir(window).load(function() {
  if(!(/Android|iPhone|iPad|iPod|BlackBerry|Windows Phone/i).test(navigator.userAgent || navigator.vendor || window.opera)){
      skrollr.init({
          forceHeight: false
      });
  }
});
</script>

</body>

</html>

Jakub Vaněk

  • Stálý člen
  • **
  • Příspěvků: 752
    • Web programátora a studenta Jakuba Vaňka
Re:php.ini nastavení vzdáleného smtp
« Odpověď #7 kdy: 19 Dubna 2015, 22:50:12 »
form odkazuje na action= "./files/mailer.php"
Notebook: Lenovo Thinkpad X200, Xubuntu 16.04

urgo272

  • Aktivní člen
  • *
  • Příspěvků: 111
Re:php.ini nastavení vzdáleného smtp
« Odpověď #8 kdy: 20 Dubna 2015, 11:11:23 »
No já to pořád zkouším řešit tim php.ini tady jsem našel dva návody ale stále mi to neodesílá ze vzdáleného smtp... :-(


https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-14-04



https://www.linode.com/docs/email/postfix/postfix-smtp-debian7

urgo272

  • Aktivní člen
  • *
  • Příspěvků: 111
Re:php.ini nastavení vzdáleného smtp
« Odpověď #9 kdy: 20 Dubna 2015, 11:55:39 »
To samý tenhle návod, taky mi to nefunguje :-(

https://www.howtoforge.com/postfix_relaying_through_another_mailserver

ETNyx

  • Aktivní člen
  • *
  • Příspěvků: 425
Re:php.ini nastavení vzdáleného smtp
« Odpověď #10 kdy: 20 Dubna 2015, 13:23:23 »
A z těch linků má někdo vyčíst co je špatně? Podívej se do logů a případně je sem postni.
jabber: etnyx@jabbim.cz

urgo272

  • Aktivní člen
  • *
  • Příspěvků: 111
Re:php.ini nastavení vzdáleného smtp
« Odpověď #11 kdy: 20 Dubna 2015, 14:43:39 »
/etc/postfix/main.cf


Kód: [Vybrat]
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only


/etc/postfix/sasl_passwd

Kód: [Vybrat]
1[smtp.gmail.com]:587 <USERNAME@yourdomain.com>:PASSWORD



/etc/postfix/main.sf

Kód: [Vybrat]
Linux websvr.net 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Apr 20 09:48:50 2015 from 46.167.202.54
root@websvr:~# mc

root@websvr:~# sudo nano /etc/postfix/main.cf
  GNU nano 2.2.6                                      File: /etc/postfix/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 (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/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:${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 = websvr.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = websvr.net, localhost.net, , localhost
relayhost = [smtp.gmail.com]:587
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only

/var/log/mail.info

Kód: [Vybrat]
Apr 20 08:44:53 websvr postfix/master[2760]: daemon started -- version 2.9.6, configuration /etc/postfix
Apr 20 08:45:16 websvr postfix/pickup[2765]: 36D5A12722: uid=33 from=<www-data>
Apr 20 08:45:16 websvr postfix/cleanup[2783]: 36D5A12722: message-id=<20150420084516.36D5A12722@websvr.net>
Apr 20 08:45:16 websvr postfix/qmgr[2766]: 36D5A12722: from=<www-data@websvr.net>, size=1358, nrcpt=1 (queue active)
Apr 20 08:45:16 websvr postfix/local[2785]: 36D5A12722: to=<info@websvr.net>, relay=local, delay=0.03, delays=0.02/0.01/0/0.01, dsn=5.1.1, status=bounced (unknow$
Apr 20 08:45:16 websvr postfix/cleanup[2783]: 3D3B212723: message-id=<20150420084516.3D3B212723@websvr.net>
Apr 20 08:45:16 websvr postfix/qmgr[2766]: 3D3B212723: from=<>, size=3025, nrcpt=1 (queue active)
Apr 20 08:45:16 websvr postfix/bounce[2786]: 36D5A12722: sender non-delivery notification: 3D3B212723
Apr 20 08:45:16 websvr postfix/qmgr[2766]: 36D5A12722: removed
Apr 20 08:45:16 websvr postfix/local[2785]: 3D3B212723: to=<www-data@websvr.net>, relay=local, delay=0.01, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to m$
Apr 20 08:45:16 websvr postfix/qmgr[2766]: 3D3B212723: removed
Apr 20 08:48:30 websvr postfix/master[2760]: terminating on signal 15

Petr Merlin Vaněček

  • Moderátor
  • Závislák
  • ***
  • Příspěvků: 5057
    • Lomítkáři
Re:php.ini nastavení vzdáleného smtp
« Odpověď #12 kdy: 20 Dubna 2015, 16:46:56 »
Chybí nám konec tohoto řádku:
Kód: [Vybrat]
Apr 20 08:45:16 websvr postfix/local[2785]: 36D5A12722: to=<info@websvr.net>, relay=local, delay=0.03, delays=0.02/0.01/0/0.01, dsn=5.1.1, status=bounced (unknow$

A přesně ten říká, co je špatně.
Stiskni CTRL + W ...
80% mozku tvoří kapalina ... u některých brzdová

urgo272

  • Aktivní člen
  • *
  • Příspěvků: 111
Re:php.ini nastavení vzdáleného smtp
« Odpověď #13 kdy: 20 Dubna 2015, 17:21:20 »
Kód: [Vybrat]
Apr 20 09:52:15 websvr postfix/master[2735]: daemon started -- version 2.9.6, configuration /etc/postfix
Apr 20 09:53:27 websvr postfix/pickup[2740]: 19F3812722: uid=33 from=<www-data>
Apr 20 09:53:27 websvr postfix/cleanup[2760]: 19F3812722: message-id=<20150420095327.19F3812722@websvr.net>
Apr 20 09:53:27 websvr postfix/qmgr[2741]: 19F3812722: from=<www-data@websvr.net>, size=1350, nrcpt=1 (queue active)
Apr 20 09:53:27 websvr postfix/local[2762]: 19F3812722: to=<info@websvr.net>, relay=local, delay=0.03, delays=0.02/0.01/0/0.01, dsn=5.1.1, status=bounced (unknow$
Apr 20 09:53:27 websvr postfix/cleanup[2760]: 1FF7512723: message-id=<20150420095327.1FF7512723@websvr.net>
Apr 20 09:53:27 websvr postfix/qmgr[2741]: 1FF7512723: from=<>, size=3017, nrcpt=1 (queue active)
Apr 20 09:53:27 websvr postfix/bounce[2763]: 19F3812722: sender non-delivery notification: 1FF7512723
Apr 20 09:53:27 websvr postfix/qmgr[2741]: 19F3812722: removed
Apr 20 09:53:27 websvr postfix/local[2762]: 1FF7512723: to=<www-data@websvr.net>, relay=local, delay=0, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to mail$box)
Apr 20 09:53:27 websvr postfix/qmgr[2741]: 1FF7512723: removed

ETNyx

  • Aktivní člen
  • *
  • Příspěvků: 425
Re:php.ini nastavení vzdáleného smtp
« Odpověď #14 kdy: 20 Dubna 2015, 17:42:55 »
bohužel ani na podruhé se to nepodařilo vykopírovat zkus použít
Kód: [Vybrat]
cat ten by měl zalamovat radky podle terminalu, pripadne
Kód: [Vybrat]
fold -w 80 -s a místo 80 dat priblizne pocet znaku pred zalomenim
jabber: etnyx@jabbim.cz

urgo272

  • Aktivní člen
  • *
  • Příspěvků: 111
Re:php.ini nastavení vzdáleného smtp
« Odpověď #15 kdy: 20 Dubna 2015, 19:07:54 »
Kód: [Vybrat]
Linux websvr.net 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Apr 20 12:17:11 2015 from 46.167.202.54
root@websvr:~# nano /var/log/mail.info
root@websvr:~# cat /var/log/mail.info
Apr 20 08:10:34 websvr postfix/master[7129]: daemon started -- version 2.9.6, configuration /etc/postfix
Apr 20 08:13:29 websvr postfix/master[7129]: terminating on signal 15
Apr 20 08:13:29 websvr postfix/master[7634]: daemon started -- version 2.9.6, configuration /etc/postfix
Apr 20 08:14:05 websvr postfix/pickup[7639]: BCD7E1271E: uid=33 from=<www-data>
Apr 20 08:14:05 websvr postfix/cleanup[7661]: BCD7E1271E: message-id=<20150420081405.BCD7E1271E@websvr.net>
Apr 20 08:14:05 websvr postfix/qmgr[7640]: BCD7E1271E: from=<www-data@websvr.net>, size=1348, nrcpt=1 (queue active)
Apr 20 08:14:05 websvr postfix/local[7663]: BCD7E1271E: to=<info@websvr.net>, relay=local, delay=0.04, delays=0.02/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "info")
Apr 20 08:14:05 websvr postfix/cleanup[7661]: C323412721: message-id=<20150420081405.C323412721@websvr.net>
Apr 20 08:14:05 websvr postfix/qmgr[7640]: C323412721: from=<>, size=3015, nrcpt=1 (queue active)
Apr 20 08:14:05 websvr postfix/bounce[7664]: BCD7E1271E: sender non-delivery notification: C323412721
Apr 20 08:14:05 websvr postfix/qmgr[7640]: BCD7E1271E: removed
Apr 20 08:14:05 websvr postfix/local[7663]: C323412721: to=<www-data@websvr.net>, relay=local, delay=0, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Apr 20 08:14:05 websvr postfix/qmgr[7640]: C323412721: removed
Apr 20 08:34:14 websvr postfix/master[7634]: terminating on signal 15
Apr 20 08:34:14 websvr postfix/master[7823]: daemon started -- version 2.9.6, configuration /etc/postfix
Apr 20 08:36:24 websvr postfix/master[7823]: terminating on signal 15
Apr 20 08:36:37 websvr postfix/master[2544]: daemon started -- version 2.9.6, configuration /etc/postfix
Apr 20 08:39:33 websvr postfix/pickup[2552]: 9B3F212722: uid=33 from=<www-data>
Apr 20 08:39:33 websvr postfix/cleanup[2610]: 9B3F212722: message-id=<20150420083933.9B3F212722@websvr.net>
Apr 20 08:39:33 websvr postfix/qmgr[2553]: 9B3F212722: from=<www-data@websvr.net>, size=1398, nrcpt=1 (queue active)
Apr 20 08:39:33 websvr postfix/local[2612]: 9B3F212722: to=<info@websvr.net>, relay=local, delay=0.04, delays=0.02/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "info")
Apr 20 08:39:33 websvr postfix/cleanup[2610]: A369A12723: message-id=<20150420083933.A369A12723@websvr.net>
Apr 20 08:39:33 websvr postfix/qmgr[2553]: A369A12723: from=<>, size=3065, nrcpt=1 (queue active)
Apr 20 08:39:33 websvr postfix/bounce[2613]: 9B3F212722: sender non-delivery notification: A369A12723
Apr 20 08:39:33 websvr postfix/qmgr[2553]: 9B3F212722: removed
Apr 20 08:39:33 websvr postfix/local[2612]: A369A12723: to=<www-data@websvr.net>, relay=local, delay=0.01, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Apr 20 08:39:33 websvr postfix/qmgr[2553]: A369A12723: removed
Apr 20 08:44:53 websvr postfix/master[2544]: terminating on signal 15
Apr 20 08:44:53 websvr postfix/master[2760]: daemon started -- version 2.9.6, configuration /etc/postfix
Apr 20 08:45:16 websvr postfix/pickup[2765]: 36D5A12722: uid=33 from=<www-data>
Apr 20 08:45:16 websvr postfix/cleanup[2783]: 36D5A12722: message-id=<20150420084516.36D5A12722@websvr.net>
Apr 20 08:45:16 websvr postfix/qmgr[2766]: 36D5A12722: from=<www-data@websvr.net>, size=1358, nrcpt=1 (queue active)
Apr 20 08:45:16 websvr postfix/local[2785]: 36D5A12722: to=<info@websvr.net>, relay=local, delay=0.03, delays=0.02/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "info")
Apr 20 08:45:16 websvr postfix/cleanup[2783]: 3D3B212723: message-id=<20150420084516.3D3B212723@websvr.net>
Apr 20 08:45:16 websvr postfix/qmgr[2766]: 3D3B212723: from=<>, size=3025, nrcpt=1 (queue active)
Apr 20 08:45:16 websvr postfix/bounce[2786]: 36D5A12722: sender non-delivery notification: 3D3B212723
Apr 20 08:45:16 websvr postfix/qmgr[2766]: 36D5A12722: removed
Apr 20 08:45:16 websvr postfix/local[2785]: 3D3B212723: to=<www-data@websvr.net>, relay=local, delay=0.01, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Apr 20 08:45:16 websvr postfix/qmgr[2766]: 3D3B212723: removed
Apr 20 08:48:30 websvr postfix/master[2760]: terminating on signal 15
Apr 20 08:48:31 websvr postfix/master[2935]: daemon started -- version 2.9.6, configuration /etc/postfix
Apr 20 08:48:47 websvr postfix/pickup[2940]: 02E9412722: uid=33 from=<www-data>
Apr 20 08:48:47 websvr postfix/cleanup[2958]: 02E9412722: message-id=<20150420084847.02E9412722@websvr.net>
Apr 20 08:48:47 websvr postfix/qmgr[2941]: 02E9412722: from=<www-data@websvr.net>, size=1332, nrcpt=1 (queue active)
Apr 20 08:48:47 websvr postfix/local[2960]: 02E9412722: to=<info@websvr.net>, relay=local, delay=0.03, delays=0.02/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "info")
Apr 20 08:48:47 websvr postfix/cleanup[2958]: 091C912723: message-id=<20150420084847.091C912723@websvr.net>
Apr 20 08:48:47 websvr postfix/qmgr[2941]: 091C912723: from=<>, size=2999, nrcpt=1 (queue active)
Apr 20 08:48:47 websvr postfix/bounce[2961]: 02E9412722: sender non-delivery notification: 091C912723
Apr 20 08:48:47 websvr postfix/qmgr[2941]: 02E9412722: removed
Apr 20 08:48:47 websvr postfix/local[2960]: 091C912723: to=<www-data@websvr.net>, relay=local, delay=0, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Apr 20 08:48:47 websvr postfix/qmgr[2941]: 091C912723: removed
Apr 20 08:49:36 websvr postfix/master[2935]: terminating on signal 15
Apr 20 08:49:53 websvr postfix/master[2525]: daemon started -- version 2.9.6, configuration /etc/postfix
Apr 20 08:51:56 websvr postfix/pickup[2534]: 3E7F412722: uid=33 from=<www-data>
Apr 20 08:51:56 websvr postfix/cleanup[2579]: 3E7F412722: message-id=<20150420085156.3E7F412722@websvr.net>
Apr 20 08:51:56 websvr postfix/qmgr[2535]: 3E7F412722: from=<www-data@websvr.net>, size=1340, nrcpt=1 (queue active)
Apr 20 08:51:56 websvr postfix/local[2581]: 3E7F412722: to=<info@websvr.net>, relay=local, delay=0.06, delays=0.03/0.02/0/0.01, dsn=5.1.1, status=bounced (unknown user: "info")
Apr 20 08:51:56 websvr postfix/cleanup[2579]: 4956312723: message-id=<20150420085156.4956312723@websvr.net>
Apr 20 08:51:56 websvr postfix/qmgr[2535]: 4956312723: from=<>, size=3007, nrcpt=1 (queue active)
Apr 20 08:51:56 websvr postfix/bounce[2582]: 3E7F412722: sender non-delivery notification: 4956312723
Apr 20 08:51:56 websvr postfix/qmgr[2535]: 3E7F412722: removed
Apr 20 08:51:56 websvr postfix/local[2581]: 4956312723: to=<www-data@websvr.net>, relay=local, delay=0.01, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Apr 20 08:51:56 websvr postfix/qmgr[2535]: 4956312723: removed
Apr 20 08:56:48 websvr postfix/master[2525]: terminating on signal 15
Apr 20 08:56:48 websvr postfix/master[2735]: daemon started -- version 2.9.6, configuration /etc/postfix
Apr 20 08:57:02 websvr postfix/pickup[2740]: 4825712722: uid=33 from=<www-data>
Apr 20 08:57:02 websvr postfix/cleanup[2758]: 4825712722: message-id=<20150420085702.4825712722@websvr.net>
Apr 20 08:57:02 websvr postfix/qmgr[2741]: 4825712722: from=<www-data@websvr.net>, size=1382, nrcpt=1 (queue active)
Apr 20 08:57:02 websvr postfix/local[2760]: 4825712722: to=<info@websvr.net>, relay=local, delay=0.08, delays=0.04/0.01/0/0.03, dsn=5.1.1, status=bounced (unknown user: "info")
Apr 20 08:57:02 websvr postfix/cleanup[2758]: 54E4D12723: message-id=<20150420085702.54E4D12723@websvr.net>
Apr 20 08:57:02 websvr postfix/qmgr[2741]: 54E4D12723: from=<>, size=3049, nrcpt=1 (queue active)
Apr 20 08:57:02 websvr postfix/bounce[2761]: 4825712722: sender non-delivery notification: 54E4D12723
Apr 20 08:57:02 websvr postfix/qmgr[2741]: 4825712722: removed
Apr 20 08:57:02 websvr postfix/local[2760]: 54E4D12723: to=<www-data@websvr.net>, relay=local, delay=0.04, delays=0.02/0/0/0.02, dsn=2.0.0, status=sent (delivered to mailbox)
Apr 20 08:57:02 websvr postfix/qmgr[2741]: 54E4D12723: removed
Apr 20 09:00:49 websvr postfix/master[2735]: terminating on signal 15
Apr 20 09:01:06 websvr postfix/master[2530]: daemon started -- version 2.9.6, configuration /etc/postfix
Apr 20 09:04:52 websvr postfix/pickup[2539]: C5A7612722: uid=33 from=<www-data>
Apr 20 09:04:52 websvr postfix/cleanup[2599]: C5A7612722: message-id=<20150420090452.C5A7612722@websvr.net>
Apr 20 09:04:52 websvr postfix/qmgr[2540]: C5A7612722: from=<www-data@websvr.net>, size=1350, nrcpt=1 (queue active)
Apr 20 09:04:52 websvr postfix/local[2601]: C5A7612722: to=<info@websvr.net>, relay=local, delay=0.07, delays=0.04/0.02/0/0.01, dsn=5.1.1, status=bounced (unknown user: "info")
Apr 20 09:04:52 websvr postfix/cleanup[2599]: D13CA12723: message-id=<20150420090452.D13CA12723@websvr.net>
Apr 20 09:04:52 websvr postfix/qmgr[2540]: D13CA12723: from=<>, size=3017, nrcpt=1 (queue active)
Apr 20 09:04:52 websvr postfix/bounce[2602]: C5A7612722: sender non-delivery notification: D13CA12723
Apr 20 09:04:52 websvr postfix/qmgr[2540]: C5A7612722: removed
Apr 20 09:04:52 websvr postfix/local[2601]: D13CA12723: to=<www-data@websvr.net>, relay=local, delay=0.01, delays=0.01/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Apr 20 09:04:52 websvr postfix/qmgr[2540]: D13CA12723: removed
Apr 20 09:07:03 websvr postfix/master[2530]: terminating on signal 15
Apr 20 09:07:03 websvr postfix/master[2755]: daemon started -- version 2.9.6, configuration /etc/postfix
Apr 20 09:07:19 websvr postfix/pickup[2760]: A80B212722: uid=33 from=<www-data>
Apr 20 09:07:19 websvr postfix/cleanup[2779]: A80B212722: message-id=<20150420090719.A80B212722@websvr.net>
Apr 20 09:07:19 websvr postfix/qmgr[2761]: A80B212722: from=<www-data@websvr.net>, size=1350, nrcpt=1 (queue active)
Apr 20 09:07:19 websvr postfix/local[2781]: A80B212722: to=<info@websvr.net>, relay=local, delay=0.07, delays=0.05/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "info")
Apr 20 09:07:19 websvr postfix/cleanup[2779]: B2D8E12723: message-id=<20150420090719.B2D8E12723@websvr.net>
Apr 20 09:07:19 websvr postfix/qmgr[2761]: B2D8E12723: from=<>, size=3017, nrcpt=1 (queue active)
Apr 20 09:07:19 websvr postfix/bounce[2782]: A80B212722: sender non-delivery notification: B2D8E12723
Apr 20 09:07:19 websvr postfix/qmgr[2761]: A80B212722: removed
Apr 20 09:07:19 websvr postfix/local[2781]: B2D8E12723: to=<www-data@websvr.net>, relay=local, delay=0.01, delays=0/0/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Apr 20 09:07:19 websvr postfix/qmgr[2761]: B2D8E12723: removed
Apr 20 09:20:45 websvr postfix/master[2755]: terminating on signal 15
Apr 20 09:20:45 websvr postfix/master[3082]: daemon started -- version 2.9.6, configuration /etc/postfix
Apr 20 09:21:06 websvr postfix/pickup[3087]: F16FC12722: uid=33 from=<www-data>
Apr 20 09:21:07 websvr postfix/cleanup[3106]: F16FC12722: message-id=<20150420092106.F16FC12722@websvr.net>
Apr 20 09:21:07 websvr postfix/qmgr[3088]: F16FC12722: from=<www-data@websvr.net>, size=1360, nrcpt=1 (queue active)
Apr 20 09:21:07 websvr postfix/local[3108]: F16FC12722: to=<info@websvr.net>, relay=local, delay=0.11, delays=0.06/0.01/0/0.03, dsn=5.1.1, status=bounced (unknown user: "info")
Apr 20 09:21:07 websvr postfix/cleanup[3106]: 0CAE212723: message-id=<20150420092107.0CAE212723@websvr.net>
Apr 20 09:21:07 websvr postfix/qmgr[3088]: 0CAE212723: from=<>, size=3027, nrcpt=1 (queue active)
Apr 20 09:21:07 websvr postfix/bounce[3109]: F16FC12722: sender non-delivery notification: 0CAE212723
Apr 20 09:21:07 websvr postfix/qmgr[3088]: F16FC12722: removed
Apr 20 09:21:07 websvr postfix/local[3108]: 0CAE212723: to=<www-data@websvr.net>, relay=local, delay=0.15, delays=0.03/0/0/0.11, dsn=2.0.0, status=sent (delivered to mailbox)
Apr 20 09:21:07 websvr postfix/qmgr[3088]: 0CAE212723: removed
Apr 20 09:23:43 websvr postfix/pickup[3087]: CAB3E12722: uid=33 from=<www-data>
Apr 20 09:23:43 websvr postfix/cleanup[3114]: CAB3E12722: message-id=<20150420092343.CAB3E12722@websvr.net>
Apr 20 09:23:43 websvr postfix/qmgr[3088]: CAB3E12722: from=<www-data@websvr.net>, size=1352, nrcpt=1 (queue active)
Apr 20 09:23:43 websvr postfix/local[3116]: CAB3E12722: to=<info@websvr.net>, relay=local, delay=0.05, delays=0.03/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "info")
Apr 20 09:23:43 websvr postfix/cleanup[3114]: D33E212723: message-id=<20150420092343.D33E212723@websvr.net>
Apr 20 09:23:43 websvr postfix/qmgr[3088]: D33E212723: from=<>, size=3019, nrcpt=1 (queue active)
Apr 20 09:23:43 websvr postfix/bounce[3117]: CAB3E12722: sender non-delivery notification: D33E212723
Apr 20 09:23:43 websvr postfix/qmgr[3088]: CAB3E12722: removed
Apr 20 09:23:43 websvr postfix/local[3116]: D33E212723: to=<www-data@websvr.net>, relay=local, delay=0.02, delays=0.01/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Apr 20 09:23:43 websvr postfix/qmgr[3088]: D33E212723: removed
Apr 20 09:43:58 websvr postfix/master[3082]: terminating on signal 15
Apr 20 09:43:59 websvr postfix/master[3330]: daemon started -- version 2.9.6, configuration /etc/postfix
Apr 20 09:44:02 websvr postfix/master[3330]: terminating on signal 15
Apr 20 09:44:18 websvr postfix/master[2530]: daemon started -- version 2.9.6, configuration /etc/postfix
Apr 20 09:46:58 websvr postfix/pickup[2539]: B0B9012722: uid=33 from=<www-data>
Apr 20 09:46:58 websvr postfix/cleanup[2579]: B0B9012722: message-id=<20150420094658.B0B9012722@websvr.net>
Apr 20 09:46:58 websvr postfix/qmgr[2540]: B0B9012722: from=<www-data@websvr.net>, size=1372, nrcpt=1 (queue active)
Apr 20 09:46:58 websvr postfix/local[2581]: B0B9012722: to=<info@websvr.net>, relay=local, delay=0.07, delays=0.04/0.02/0/0.01, dsn=5.1.1, status=bounced (unknown user: "info")
Apr 20 09:46:58 websvr postfix/cleanup[2579]: BFE8912723: message-id=<20150420094658.BFE8912723@websvr.net>
Apr 20 09:46:58 websvr postfix/qmgr[2540]: BFE8912723: from=<>, size=3039, nrcpt=1 (queue active)
Apr 20 09:46:58 websvr postfix/bounce[2582]: B0B9012722: sender non-delivery notification: BFE8912723
Apr 20 09:46:58 websvr postfix/qmgr[2540]: B0B9012722: removed
Apr 20 09:46:58 websvr postfix/local[2581]: BFE8912723: to=<www-data@websvr.net>, relay=local, delay=0.01, delays=0.01/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Apr 20 09:46:58 websvr postfix/qmgr[2540]: BFE8912723: removed
Apr 20 09:52:14 websvr postfix/master[2530]: terminating on signal 15
Apr 20 09:52:15 websvr postfix/master[2735]: daemon started -- version 2.9.6, configuration /etc/postfix
Apr 20 09:53:27 websvr postfix/pickup[2740]: 19F3812722: uid=33 from=<www-data>
Apr 20 09:53:27 websvr postfix/cleanup[2760]: 19F3812722: message-id=<20150420095327.19F3812722@websvr.net>
Apr 20 09:53:27 websvr postfix/qmgr[2741]: 19F3812722: from=<www-data@websvr.net>, size=1350, nrcpt=1 (queue active)
Apr 20 09:53:27 websvr postfix/local[2762]: 19F3812722: to=<info@websvr.net>, relay=local, delay=0.03, delays=0.02/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "info")
Apr 20 09:53:27 websvr postfix/cleanup[2760]: 1FF7512723: message-id=<20150420095327.1FF7512723@websvr.net>
Apr 20 09:53:27 websvr postfix/qmgr[2741]: 1FF7512723: from=<>, size=3017, nrcpt=1 (queue active)
Apr 20 09:53:27 websvr postfix/bounce[2763]: 19F3812722: sender non-delivery notification: 1FF7512723
Apr 20 09:53:27 websvr postfix/qmgr[2741]: 19F3812722: removed
Apr 20 09:53:27 websvr postfix/local[2762]: 1FF7512723: to=<www-data@websvr.net>, relay=local, delay=0, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Apr 20 09:53:27 websvr postfix/qmgr[2741]: 1FF7512723: removed
root@websvr:~# fold -w 80 -s /var/log/mail.info
Apr 20 08:10:34 websvr postfix/master[7129]: daemon started -- version 2.9.6,
configuration /etc/postfix
Apr 20 08:13:29 websvr postfix/master[7129]: terminating on signal 15
Apr 20 08:13:29 websvr postfix/master[7634]: daemon started -- version 2.9.6,
configuration /etc/postfix
Apr 20 08:14:05 websvr postfix/pickup[7639]: BCD7E1271E: uid=33 from=<www-data>
Apr 20 08:14:05 websvr postfix/cleanup[7661]: BCD7E1271E:
message-id=<20150420081405.BCD7E1271E@websvr.net>
Apr 20 08:14:05 websvr postfix/qmgr[7640]: BCD7E1271E:
from=<www-data@websvr.net>, size=1348, nrcpt=1 (queue active)
Apr 20 08:14:05 websvr postfix/local[7663]: BCD7E1271E: to=<info@websvr.net>,
relay=local, delay=0.04, delays=0.02/0.01/0/0.01, dsn=5.1.1, status=bounced
(unknown user: "info")
Apr 20 08:14:05 websvr postfix/cleanup[7661]: C323412721:
message-id=<20150420081405.C323412721@websvr.net>
Apr 20 08:14:05 websvr postfix/qmgr[7640]: C323412721: from=<>, size=3015,
nrcpt=1 (queue active)
Apr 20 08:14:05 websvr postfix/bounce[7664]: BCD7E1271E: sender non-delivery
notification: C323412721
Apr 20 08:14:05 websvr postfix/qmgr[7640]: BCD7E1271E: removed
Apr 20 08:14:05 websvr postfix/local[7663]: C323412721:
to=<www-data@websvr.net>, relay=local, delay=0, delays=0/0/0/0, dsn=2.0.0,
status=sent (delivered to mailbox)
Apr 20 08:14:05 websvr postfix/qmgr[7640]: C323412721: removed
Apr 20 08:34:14 websvr postfix/master[7634]: terminating on signal 15
Apr 20 08:34:14 websvr postfix/master[7823]: daemon started -- version 2.9.6,
configuration /etc/postfix
Apr 20 08:36:24 websvr postfix/master[7823]: terminating on signal 15
Apr 20 08:36:37 websvr postfix/master[2544]: daemon started -- version 2.9.6,
configuration /etc/postfix
Apr 20 08:39:33 websvr postfix/pickup[2552]: 9B3F212722: uid=33 from=<www-data>
Apr 20 08:39:33 websvr postfix/cleanup[2610]: 9B3F212722:
message-id=<20150420083933.9B3F212722@websvr.net>
Apr 20 08:39:33 websvr postfix/qmgr[2553]: 9B3F212722:
from=<www-data@websvr.net>, size=1398, nrcpt=1 (queue active)
Apr 20 08:39:33 websvr postfix/local[2612]: 9B3F212722: to=<info@websvr.net>,
relay=local, delay=0.04, delays=0.02/0.01/0/0.01, dsn=5.1.1, status=bounced
(unknown user: "info")
Apr 20 08:39:33 websvr postfix/cleanup[2610]: A369A12723:
message-id=<20150420083933.A369A12723@websvr.net>
Apr 20 08:39:33 websvr postfix/qmgr[2553]: A369A12723: from=<>, size=3065,
nrcpt=1 (queue active)
Apr 20 08:39:33 websvr postfix/bounce[2613]: 9B3F212722: sender non-delivery
notification: A369A12723
Apr 20 08:39:33 websvr postfix/qmgr[2553]: 9B3F212722: removed
Apr 20 08:39:33 websvr postfix/local[2612]: A369A12723:
to=<www-data@websvr.net>, relay=local, delay=0.01, delays=0/0/0/0, dsn=2.0.0,
status=sent (delivered to mailbox)
Apr 20 08:39:33 websvr postfix/qmgr[2553]: A369A12723: removed
Apr 20 08:44:53 websvr postfix/master[2544]: terminating on signal 15
Apr 20 08:44:53 websvr postfix/master[2760]: daemon started -- version 2.9.6,
configuration /etc/postfix
Apr 20 08:45:16 websvr postfix/pickup[2765]: 36D5A12722: uid=33 from=<www-data>
Apr 20 08:45:16 websvr postfix/cleanup[2783]: 36D5A12722:
message-id=<20150420084516.36D5A12722@websvr.net>
Apr 20 08:45:16 websvr postfix/qmgr[2766]: 36D5A12722:
from=<www-data@websvr.net>, size=1358, nrcpt=1 (queue active)
Apr 20 08:45:16 websvr postfix/local[2785]: 36D5A12722: to=<info@websvr.net>,
relay=local, delay=0.03, delays=0.02/0.01/0/0.01, dsn=5.1.1, status=bounced
(unknown user: "info")
Apr 20 08:45:16 websvr postfix/cleanup[2783]: 3D3B212723:
message-id=<20150420084516.3D3B212723@websvr.net>
Apr 20 08:45:16 websvr postfix/qmgr[2766]: 3D3B212723: from=<>, size=3025,
nrcpt=1 (queue active)
Apr 20 08:45:16 websvr postfix/bounce[2786]: 36D5A12722: sender non-delivery
notification: 3D3B212723
Apr 20 08:45:16 websvr postfix/qmgr[2766]: 36D5A12722: removed
Apr 20 08:45:16 websvr postfix/local[2785]: 3D3B212723:
to=<www-data@websvr.net>, relay=local, delay=0.01, delays=0/0/0/0, dsn=2.0.0,
status=sent (delivered to mailbox)
Apr 20 08:45:16 websvr postfix/qmgr[2766]: 3D3B212723: removed
Apr 20 08:48:30 websvr postfix/master[2760]: terminating on signal 15
Apr 20 08:48:31 websvr postfix/master[2935]: daemon started -- version 2.9.6,
configuration /etc/postfix
Apr 20 08:48:47 websvr postfix/pickup[2940]: 02E9412722: uid=33 from=<www-data>
Apr 20 08:48:47 websvr postfix/cleanup[2958]: 02E9412722:
message-id=<20150420084847.02E9412722@websvr.net>
Apr 20 08:48:47 websvr postfix/qmgr[2941]: 02E9412722:
from=<www-data@websvr.net>, size=1332, nrcpt=1 (queue active)
Apr 20 08:48:47 websvr postfix/local[2960]: 02E9412722: to=<info@websvr.net>,
relay=local, delay=0.03, delays=0.02/0.01/0/0.01, dsn=5.1.1, status=bounced
(unknown user: "info")
Apr 20 08:48:47 websvr postfix/cleanup[2958]: 091C912723:
message-id=<20150420084847.091C912723@websvr.net>
Apr 20 08:48:47 websvr postfix/qmgr[2941]: 091C912723: from=<>, size=2999,
nrcpt=1 (queue active)
Apr 20 08:48:47 websvr postfix/bounce[2961]: 02E9412722: sender non-delivery
notification: 091C912723
Apr 20 08:48:47 websvr postfix/qmgr[2941]: 02E9412722: removed
Apr 20 08:48:47 websvr postfix/local[2960]: 091C912723:
to=<www-data@websvr.net>, relay=local, delay=0, delays=0/0/0/0, dsn=2.0.0,
status=sent (delivered to mailbox)
Apr 20 08:48:47 websvr postfix/qmgr[2941]: 091C912723: removed
Apr 20 08:49:36 websvr postfix/master[2935]: terminating on signal 15
Apr 20 08:49:53 websvr postfix/master[2525]: daemon started -- version 2.9.6,
configuration /etc/postfix
Apr 20 08:51:56 websvr postfix/pickup[2534]: 3E7F412722: uid=33 from=<www-data>
Apr 20 08:51:56 websvr postfix/cleanup[2579]: 3E7F412722:
message-id=<20150420085156.3E7F412722@websvr.net>
Apr 20 08:51:56 websvr postfix/qmgr[2535]: 3E7F412722:
from=<www-data@websvr.net>, size=1340, nrcpt=1 (queue active)
Apr 20 08:51:56 websvr postfix/local[2581]: 3E7F412722: to=<info@websvr.net>,
relay=local, delay=0.06, delays=0.03/0.02/0/0.01, dsn=5.1.1, status=bounced
(unknown user: "info")
Apr 20 08:51:56 websvr postfix/cleanup[2579]: 4956312723:
message-id=<20150420085156.4956312723@websvr.net>
Apr 20 08:51:56 websvr postfix/qmgr[2535]: 4956312723: from=<>, size=3007,
nrcpt=1 (queue active)
Apr 20 08:51:56 websvr postfix/bounce[2582]: 3E7F412722: sender non-delivery
notification: 4956312723
Apr 20 08:51:56 websvr postfix/qmgr[2535]: 3E7F412722: removed
Apr 20 08:51:56 websvr postfix/local[2581]: 4956312723:
to=<www-data@websvr.net>, relay=local, delay=0.01, delays=0/0/0/0, dsn=2.0.0,
status=sent (delivered to mailbox)
Apr 20 08:51:56 websvr postfix/qmgr[2535]: 4956312723: removed
Apr 20 08:56:48 websvr postfix/master[2525]: terminating on signal 15
Apr 20 08:56:48 websvr postfix/master[2735]: daemon started -- version 2.9.6,
configuration /etc/postfix
Apr 20 08:57:02 websvr postfix/pickup[2740]: 4825712722: uid=33 from=<www-data>
Apr 20 08:57:02 websvr postfix/cleanup[2758]: 4825712722:
message-id=<20150420085702.4825712722@websvr.net>
Apr 20 08:57:02 websvr postfix/qmgr[2741]: 4825712722:
from=<www-data@websvr.net>, size=1382, nrcpt=1 (queue active)
Apr 20 08:57:02 websvr postfix/local[2760]: 4825712722: to=<info@websvr.net>,
relay=local, delay=0.08, delays=0.04/0.01/0/0.03, dsn=5.1.1, status=bounced
(unknown user: "info")
Apr 20 08:57:02 websvr postfix/cleanup[2758]: 54E4D12723:
message-id=<20150420085702.54E4D12723@websvr.net>
Apr 20 08:57:02 websvr postfix/qmgr[2741]: 54E4D12723: from=<>, size=3049,
nrcpt=1 (queue active)
Apr 20 08:57:02 websvr postfix/bounce[2761]: 4825712722: sender non-delivery
notification: 54E4D12723
Apr 20 08:57:02 websvr postfix/qmgr[2741]: 4825712722: removed
Apr 20 08:57:02 websvr postfix/local[2760]: 54E4D12723:
to=<www-data@websvr.net>, relay=local, delay=0.04, delays=0.02/0/0/0.02,
dsn=2.0.0, status=sent (delivered to mailbox)
Apr 20 08:57:02 websvr postfix/qmgr[2741]: 54E4D12723: removed
Apr 20 09:00:49 websvr postfix/master[2735]: terminating on signal 15
Apr 20 09:01:06 websvr postfix/master[2530]: daemon started -- version 2.9.6,
configuration /etc/postfix
Apr 20 09:04:52 websvr postfix/pickup[2539]: C5A7612722: uid=33 from=<www-data>
Apr 20 09:04:52 websvr postfix/cleanup[2599]: C5A7612722:
message-id=<20150420090452.C5A7612722@websvr.net>
Apr 20 09:04:52 websvr postfix/qmgr[2540]: C5A7612722:
from=<www-data@websvr.net>, size=1350, nrcpt=1 (queue active)
Apr 20 09:04:52 websvr postfix/local[2601]: C5A7612722: to=<info@websvr.net>,
relay=local, delay=0.07, delays=0.04/0.02/0/0.01, dsn=5.1.1, status=bounced
(unknown user: "info")
Apr 20 09:04:52 websvr postfix/cleanup[2599]: D13CA12723:
message-id=<20150420090452.D13CA12723@websvr.net>
Apr 20 09:04:52 websvr postfix/qmgr[2540]: D13CA12723: from=<>, size=3017,
nrcpt=1 (queue active)
Apr 20 09:04:52 websvr postfix/bounce[2602]: C5A7612722: sender non-delivery
notification: D13CA12723
Apr 20 09:04:52 websvr postfix/qmgr[2540]: C5A7612722: removed
Apr 20 09:04:52 websvr postfix/local[2601]: D13CA12723:
to=<www-data@websvr.net>, relay=local, delay=0.01, delays=0.01/0/0/0,
dsn=2.0.0, status=sent (delivered to mailbox)
Apr 20 09:04:52 websvr postfix/qmgr[2540]: D13CA12723: removed
Apr 20 09:07:03 websvr postfix/master[2530]: terminating on signal 15
Apr 20 09:07:03 websvr postfix/master[2755]: daemon started -- version 2.9.6,
configuration /etc/postfix
Apr 20 09:07:19 websvr postfix/pickup[2760]: A80B212722: uid=33 from=<www-data>
Apr 20 09:07:19 websvr postfix/cleanup[2779]: A80B212722:
message-id=<20150420090719.A80B212722@websvr.net>
Apr 20 09:07:19 websvr postfix/qmgr[2761]: A80B212722:
from=<www-data@websvr.net>, size=1350, nrcpt=1 (queue active)
Apr 20 09:07:19 websvr postfix/local[2781]: A80B212722: to=<info@websvr.net>,
relay=local, delay=0.07, delays=0.05/0.01/0/0.01, dsn=5.1.1, status=bounced
(unknown user: "info")
Apr 20 09:07:19 websvr postfix/cleanup[2779]: B2D8E12723:
message-id=<20150420090719.B2D8E12723@websvr.net>
Apr 20 09:07:19 websvr postfix/qmgr[2761]: B2D8E12723: from=<>, size=3017,
nrcpt=1 (queue active)
Apr 20 09:07:19 websvr postfix/bounce[2782]: A80B212722: sender non-delivery
notification: B2D8E12723
Apr 20 09:07:19 websvr postfix/qmgr[2761]: A80B212722: removed
Apr 20 09:07:19 websvr postfix/local[2781]: B2D8E12723:
to=<www-data@websvr.net>, relay=local, delay=0.01, delays=0/0/0/0.01,
dsn=2.0.0, status=sent (delivered to mailbox)
Apr 20 09:07:19 websvr postfix/qmgr[2761]: B2D8E12723: removed
Apr 20 09:20:45 websvr postfix/master[2755]: terminating on signal 15
Apr 20 09:20:45 websvr postfix/master[3082]: daemon started -- version 2.9.6,
configuration /etc/postfix
Apr 20 09:21:06 websvr postfix/pickup[3087]: F16FC12722: uid=33 from=<www-data>
Apr 20 09:21:07 websvr postfix/cleanup[3106]: F16FC12722:
message-id=<20150420092106.F16FC12722@websvr.net>
Apr 20 09:21:07 websvr postfix/qmgr[3088]: F16FC12722:
from=<www-data@websvr.net>, size=1360, nrcpt=1 (queue active)
Apr 20 09:21:07 websvr postfix/local[3108]: F16FC12722: to=<info@websvr.net>,
relay=local, delay=0.11, delays=0.06/0.01/0/0.03, dsn=5.1.1, status=bounced
(unknown user: "info")
Apr 20 09:21:07 websvr postfix/cleanup[3106]: 0CAE212723:
message-id=<20150420092107.0CAE212723@websvr.net>
Apr 20 09:21:07 websvr postfix/qmgr[3088]: 0CAE212723: from=<>, size=3027,
nrcpt=1 (queue active)
Apr 20 09:21:07 websvr postfix/bounce[3109]: F16FC12722: sender non-delivery
notification: 0CAE212723
Apr 20 09:21:07 websvr postfix/qmgr[3088]: F16FC12722: removed
Apr 20 09:21:07 websvr postfix/local[3108]: 0CAE212723:
to=<www-data@websvr.net>, relay=local, delay=0.15, delays=0.03/0/0/0.11,
dsn=2.0.0, status=sent (delivered to mailbox)
Apr 20 09:21:07 websvr postfix/qmgr[3088]: 0CAE212723: removed
Apr 20 09:23:43 websvr postfix/pickup[3087]: CAB3E12722: uid=33 from=<www-data>
Apr 20 09:23:43 websvr postfix/cleanup[3114]: CAB3E12722:
message-id=<20150420092343.CAB3E12722@websvr.net>
Apr 20 09:23:43 websvr postfix/qmgr[3088]: CAB3E12722:
from=<www-data@websvr.net>, size=1352, nrcpt=1 (queue active)
Apr 20 09:23:43 websvr postfix/local[3116]: CAB3E12722: to=<info@websvr.net>,
relay=local, delay=0.05, delays=0.03/0.01/0/0.01, dsn=5.1.1, status=bounced
(unknown user: "info")
Apr 20 09:23:43 websvr postfix/cleanup[3114]: D33E212723:
message-id=<20150420092343.D33E212723@websvr.net>
Apr 20 09:23:43 websvr postfix/qmgr[3088]: D33E212723: from=<>, size=3019,
nrcpt=1 (queue active)
Apr 20 09:23:43 websvr postfix/bounce[3117]: CAB3E12722: sender non-delivery
notification: D33E212723
Apr 20 09:23:43 websvr postfix/qmgr[3088]: CAB3E12722: removed
Apr 20 09:23:43 websvr postfix/local[3116]: D33E212723:
to=<www-data@websvr.net>, relay=local, delay=0.02, delays=0.01/0/0/0,
dsn=2.0.0, status=sent (delivered to mailbox)
Apr 20 09:23:43 websvr postfix/qmgr[3088]: D33E212723: removed
Apr 20 09:43:58 websvr postfix/master[3082]: terminating on signal 15
Apr 20 09:43:59 websvr postfix/master[3330]: daemon started -- version 2.9.6,
configuration /etc/postfix
Apr 20 09:44:02 websvr postfix/master[3330]: terminating on signal 15
Apr 20 09:44:18 websvr postfix/master[2530]: daemon started -- version 2.9.6,
configuration /etc/postfix
Apr 20 09:46:58 websvr postfix/pickup[2539]: B0B9012722: uid=33 from=<www-data>
Apr 20 09:46:58 websvr postfix/cleanup[2579]: B0B9012722:
message-id=<20150420094658.B0B9012722@websvr.net>
Apr 20 09:46:58 websvr postfix/qmgr[2540]: B0B9012722:
from=<www-data@websvr.net>, size=1372, nrcpt=1 (queue active)
Apr 20 09:46:58 websvr postfix/local[2581]: B0B9012722: to=<info@websvr.net>,
relay=local, delay=0.07, delays=0.04/0.02/0/0.01, dsn=5.1.1, status=bounced
(unknown user: "info")
Apr 20 09:46:58 websvr postfix/cleanup[2579]: BFE8912723:
message-id=<20150420094658.BFE8912723@websvr.net>
Apr 20 09:46:58 websvr postfix/qmgr[2540]: BFE8912723: from=<>, size=3039,
nrcpt=1 (queue active)
Apr 20 09:46:58 websvr postfix/bounce[2582]: B0B9012722: sender non-delivery
notification: BFE8912723
Apr 20 09:46:58 websvr postfix/qmgr[2540]: B0B9012722: removed
Apr 20 09:46:58 websvr postfix/local[2581]: BFE8912723:
to=<www-data@websvr.net>, relay=local, delay=0.01, delays=0.01/0/0/0,
dsn=2.0.0, status=sent (delivered to mailbox)
Apr 20 09:46:58 websvr postfix/qmgr[2540]: BFE8912723: removed
Apr 20 09:52:14 websvr postfix/master[2530]: terminating on signal 15
Apr 20 09:52:15 websvr postfix/master[2735]: daemon started -- version 2.9.6,
configuration /etc/postfix
Apr 20 09:53:27 websvr postfix/pickup[2740]: 19F3812722: uid=33 from=<www-data>
Apr 20 09:53:27 websvr postfix/cleanup[2760]: 19F3812722:
message-id=<20150420095327.19F3812722@websvr.net>
Apr 20 09:53:27 websvr postfix/qmgr[2741]: 19F3812722:
from=<www-data@websvr.net>, size=1350, nrcpt=1 (queue active)
Apr 20 09:53:27 websvr postfix/local[2762]: 19F3812722: to=<info@websvr.net>,
relay=local, delay=0.03, delays=0.02/0.01/0/0.01, dsn=5.1.1, status=bounced
(unknown user: "info")
Apr 20 09:53:27 websvr postfix/cleanup[2760]: 1FF7512723:
message-id=<20150420095327.1FF7512723@websvr.net>
Apr 20 09:53:27 websvr postfix/qmgr[2741]: 1FF7512723: from=<>, size=3017,
nrcpt=1 (queue active)
Apr 20 09:53:27 websvr postfix/bounce[2763]: 19F3812722: sender non-delivery
notification: 1FF7512723
Apr 20 09:53:27 websvr postfix/qmgr[2741]: 19F3812722: removed
Apr 20 09:53:27 websvr postfix/local[2762]: 1FF7512723:
to=<www-data@websvr.net>, relay=local, delay=0, delays=0/0/0/0, dsn=2.0.0,
status=sent (delivered to mailbox)
Apr 20 09:53:27 websvr postfix/qmgr[2741]: 1FF7512723: removed
root@websvr:~#














Petr Merlin Vaněček

  • Moderátor
  • Závislák
  • ***
  • Příspěvků: 5057
    • Lomítkáři
Re:php.ini nastavení vzdáleného smtp
« Odpověď #16 kdy: 20 Dubna 2015, 20:03:16 »
No a je to tu :)

Kód: [Vybrat]
websvr postfix/local[2760]: 4825712722: to=<info@websvr.net>, relay=local, delay=0.08, delays=0.04/0.01/0/0.03, dsn=5.1.1, status=bounced (unknown user: "info")

Neexistuje user info v doméně websvr.net definované jako lokální, takže to zahodí a pošle na www-data (lokální odesílatel z php) info o tom, že sorry, nemohl jsem doručit, neb takový user neexistuje.
Stiskni CTRL + W ...
80% mozku tvoří kapalina ... u některých brzdová

urgo272

  • Aktivní člen
  • *
  • Příspěvků: 111
Re:php.ini nastavení vzdáleného smtp
« Odpověď #17 kdy: 20 Dubna 2015, 20:18:57 »
Jenže, to ano že neexistuje lokálně v té doméně, ale na jiném vzdáleném serveru ano (proto chci používat vzdálené smtp). Je to tak, že vlastně tohle je jen webserver. Mám to takhle

Webserver - doména websvr.net (odtud ty logy a nastavený postfix) 1 PC
SMTP server - kam mam vlastně nastavený MX record taky pro websvr.net a tam ten uživatel info@websvr.net je... 2 PC

Petr Merlin Vaněček

  • Moderátor
  • Závislák
  • ***
  • Příspěvků: 5057
    • Lomítkáři
Re:php.ini nastavení vzdáleného smtp
« Odpověď #18 kdy: 20 Dubna 2015, 20:22:18 »
No jo, jenže v takovém případě nemůže být v postfixu:
Kód: [Vybrat]
mydestination = websvr.net, localhost.net, , localhost

Lokální postfix tu doménu pak považuje za vlastní a snaží se v ní doručovat.
Stiskni CTRL + W ...
80% mozku tvoří kapalina ... u některých brzdová

urgo272

  • Aktivní člen
  • *
  • Příspěvků: 111
Re:php.ini nastavení vzdáleného smtp
« Odpověď #19 kdy: 20 Dubna 2015, 20:26:29 »
takže čistě teoreticky, když přejmenuju doménu, a MX záznamy necham tak jak jsou mohlo by to fungovat ?...

Petr Merlin Vaněček

  • Moderátor
  • Závislák
  • ***
  • Příspěvků: 5057
    • Lomítkáři
Re:php.ini nastavení vzdáleného smtp
« Odpověď #20 kdy: 20 Dubna 2015, 20:32:24 »
takže čistě teoreticky, když přejmenuju doménu, a MX záznamy necham tak jak jsou mohlo by to fungovat ?...

Nic nepřejmenovávej, tu doménu úplně vyhoď z mydestination - tahle direktiva říká, že postfix tyto domény má považovat za místní cíle. Pro nastavení default domény pro odchozí zprávy nastav v postfixu myorigin.
Stiskni CTRL + W ...
80% mozku tvoří kapalina ... u některých brzdová

urgo272

  • Aktivní člen
  • *
  • Příspěvků: 111
Re:php.ini nastavení vzdáleného smtp
« Odpověď #21 kdy: 20 Dubna 2015, 20:49:08 »
Udělal jsem to takhle a mejl zase nikde, kouknu ještě do logu....

Kód: [Vybrat]
Linux websvr.net 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Apr 20 15:16:49 2015 from 213.192.58.167
root@websvr:~# sudo nano /etc/postfix/main.cf                                                                                                                      root@websvr:~# sudo service postfix restart
[ ok ] Stopping Postfix Mail Transport Agent: postfix.
[ ok ] Starting Postfix Mail Transport Agent: postfix.
root@websvr:~# sudo nano /etc/postfix/main.cf
  GNU nano 2.2.6                                      File: /etc/postfix/main.cf

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/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:${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 = websvr.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost.net, , localhost
relayhost = [smtp.cesky-hosting.cz]
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only

# enable SASL authentication
smtp_sasl_auth_enable = yes
# disallow methods that allow anonymous authentication.
smtp_sasl_security_options =
# where to find sasl_passwd
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
# Enable STARTTLS encryption
smtp_use_tls = yes
# where to find CA certificates
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt

urgo272

  • Aktivní člen
  • *
  • Příspěvků: 111
Re:php.ini nastavení vzdáleného smtp
« Odpověď #22 kdy: 20 Dubna 2015, 20:52:25 »
aaaaa já nechci používat nějakej certifikát :-D já se chci jen připojit ke vzdálenýmu smtp serveru :-(

Kód: [Vybrat]
Apr 20 18:44:40 websvr postfix/master[2717]: daemon started -- version 2.9.6,
configuration /etc/postfix
Apr 20 18:45:20 websvr postfix/pickup[2722]: 4139312722: uid=33 from=<www-data>
Apr 20 18:45:20 websvr postfix/cleanup[2756]: 4139312722:
message-id=<20150420184520.4139312722@websvr.net>
Apr 20 18:45:20 websvr postfix/qmgr[2723]: 4139312722:
from=<www-data@websvr.net>, size=1364, nrcpt=1 (queue active)
Apr 20 18:45:20 websvr postfix/smtp[2758]: cannot load Certificate Authority
data: disabling TLS support
Apr 20 18:45:20 websvr postfix/smtp[2758]: warning: TLS library problem:
2758:error:02001002:system library:fopen:No such file or
directory:bss_file.c:169:fopen('/etc/ssl/certs/ca-certificates.crt','r'):
Apr 20 18:45:20 websvr postfix/smtp[2758]: warning: TLS library problem:
2758:error:2006D080:BIO routines:BIO_new_file:no such file:bss_file.c:172:
Apr 20 18:45:20 websvr postfix/smtp[2758]: warning: TLS library problem:
2758:error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system
lib:by_file.c:274:
Apr 20 18:45:21 websvr postfix/smtp[2758]: 4139312722: to=<info@websvr.net>,
relay=smtp.cesky-hosting.cz[91.239.200.238]:25, delay=0.78,
delays=0.03/0.04/0.62/0.08, dsn=2.0.0, status=sent (250 2.0.0 from
MTA(smtp:[127.0.0.1]:10026): 250 2.0.0 Ok: queued as C4E4DDC9)
Apr 20 18:45:21 websvr postfix/qmgr[2723]: 4139312722: removed

Petr Merlin Vaněček

  • Moderátor
  • Závislák
  • ***
  • Příspěvků: 5057
    • Lomítkáři
Re:php.ini nastavení vzdáleného smtp
« Odpověď #23 kdy: 20 Dubna 2015, 20:57:38 »
No pokud já vidím, tak v logu vidím, že mail odešel kam měl ...
Kód: [Vybrat]
Apr 20 18:45:21 websvr postfix/smtp[2758]: 4139312722: to=<info@websvr.net>,
relay=smtp.cesky-hosting.cz[91.239.200.238]:25, delay=0.78,
delays=0.03/0.04/0.62/0.08, dsn=2.0.0, status=sent (250 2.0.0 from
MTA(smtp:[127.0.0.1]:10026): 250 2.0.0 Ok: queued as C4E4DDC9)
Apr 20 18:45:21 websvr postfix/qmgr[2723]: 4139312722: removed
Stiskni CTRL + W ...
80% mozku tvoří kapalina ... u některých brzdová

ETNyx

  • Aktivní člen
  • *
  • Příspěvků: 425
Re:php.ini nastavení vzdáleného smtp
« Odpověď #24 kdy: 20 Dubna 2015, 21:12:38 »
ten chybející file s certifikaty, tak to vypada že nemáš nainstalovaný balík ca-certificates http://packages.ubuntu.com/trusty/ca-certificates
jabber: etnyx@jabbim.cz

 

Provoz zaštiťuje spolek OpenAlt.