postfix-mta

Postfix message received hook

不羁岁月 提交于 2019-12-07 06:00:57
问题 I am writing an web-application which needs to receive e-mail messages to users' internal email addresses, let administrators approve them, and then forward to corresponding user's external mailbox. I have installed and configured postfix for message receiving task. It uses virtual e-mail addresses, and my existing database where user email addresses are stored. Local email storage is maildir and I use postfix's virtual MDA. Basically, I would like to execute a script every time a new message

Problems with spaces in php mails

微笑、不失礼 提交于 2019-12-06 15:33:45
I am having some serious problem with some e-mail issue. in short: loading a html template file fopen replacing some values, marked like this %password with real values str_replace sending mail via the following function, where $content is the loaded html template file: public function send($receiver, $subject, $content){ $header = "From:".sender. "\n"; $header .= "MIME-Version:1.0" . "\n"; $header .= "Content-type:text/html;charset=utf-8" . "\n"; $mailText = $content; mail($receiver, $subject, stripslashes(iconv('utf-8', 'iso-8859-1', $mailText)) , $header); } the server is debian with

Sendmail/procmail - get mail sender and mail subject, utf8 encoding issues [closed]

这一生的挚爱 提交于 2019-12-06 15:28:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . My .procmailrc (really simple): :0c | $HOME/send_sms.sh "`formail -xFrom:`" "`formail -xSubject:`" So, sender named "mail@domain.com" sends message with subject "Subject test ąść". The script "send_sms.sh" receives: Sender: =?UTF-8?Q?mail@domain.com?= <mail@domain.com> Subject: =?UTF-8?Q?Subject_test_=C4=85=C5

How to send email with Phpmailer with DKIM signature?

我怕爱的太早我们不能终老 提交于 2019-12-06 02:11:18
I`m using PHPmailer to sent email. I installed postfix service and DKIM-Milter to generate the key. It works fine if i use command line to sent mail, and the mail is with DKIM signature displaying "signed-by:mydomain.com" Authentication-Results: mx.google.com; spf=pass (google.com: domain of root@mydomain.com designates 182.50.xxx.xxx as permitted sender) smtp.mail=root@mydomain.com; dkim=pass header.i=@mydomain.com DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mydomain.com; s=default; t=1325531456; bh=+gZFhu4Id2AXb8UVbFLzDVVlChWGhvxvJUIdjdMLQsk=; h=To:Subject:Message-Id:Date:From; b

Linux postfix/dovecot 554 Relay access denied

六眼飞鱼酱① 提交于 2019-12-06 01:43:08
问题 I have this error 554 Relay access denied when trying to send email from my outlook client. I can read incoming mails but cannot send. If i connect with telnet localhost 25 i can send external emails, but with outlook client it doesn't work. Here's my postfix and dovecot config : postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no config_directory = /etc/postfix inet_interfaces = all mailbox_size_limit = 0 mydestination = localhost

Postfix + Django: SMTPException: SMTP AUTH extension not supported by server [closed]

*爱你&永不变心* 提交于 2019-12-05 22:46:05
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am complete novice to Postfix, just set up default Postfix for Ubuntu, tested it through telnet and it sent mail ok, but when I try to send mail through django (host='localhost', port='25', user='', password=''), I just get SMTPException: SMTP AUTH extension not supported by server. Here is my main.cf: https://gist.github.com/3348411 Could you please suggest, what I need to add to set up minimal working smtp

smtp send mail via postfix and nodejs nodemailer connection closed

↘锁芯ラ 提交于 2019-12-05 06:58:17
问题 i have problem of remote sending via smtp server using nodejs module nodemailer host: 'mail.5cpa.ru' port: 587 secure: false (true tried also) smtp server is mine, and i can send mails through thenderbird, using same setting log server 220 5cpa.ru ESMTP Postfix (Ubuntu) client EHLO vonica server 250-5cpa.ru 250-PIPELINING 250-SIZE 15728640 250-ETRN 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN client STARTTLS server 220 2.0.0 Ready to start TLS socket Closing connection to the

How to change the mailer Content-Transfer-Encoding settings in Rails?

此生再无相见时 提交于 2019-12-05 04:21:38
The 'Content-Transfer-Encoding' setting is set to '7bit' by default. The mail server Postfix is breaking down the email header by bunch of 1000 caracteres, meaning that if you have a long email (using HTML for example), you end up having spaces in the middle of your text or links. (See this thread for more info: http://tech.groups.yahoo.com/group/postfix-users/message/273296 ) Following the Rails ActionMailer documentation (http://api.rubyonrails.org/classes/ActionMailer/Base.html), adding the following code to my app file should make it, but it doesn't work: ActionMailer::Base.default

Sendmail/procmail - get mail sender and mail subject, utf8 encoding issues [closed]

让人想犯罪 __ 提交于 2019-12-04 22:45:48
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . My .procmailrc (really simple): :0c | $HOME/send_sms.sh "`formail -xFrom:`" "`formail -xSubject:`" So, sender named "mail@domain.com" sends message with subject "Subject test ąść". The script "send_sms.sh" receives: Sender: =?UTF-8?Q?mail@domain.com?= <mail@domain.com> Subject: =?UTF-8?Q?Subject_test_=C4=85=C5=9B=C4=87?= How should I modify my .procmailrc to get clear text? Or convert this in my script send_sms

postfix 2.9.6.1 forward all mail to an external mail address

好久不见. 提交于 2019-12-04 18:52:41
I am trying to tell postfix that all mails to any address should be forwarded to an external email address. My main.cf includes the entry for 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 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