postfix-mta

Quoting/Escaping variables in mail body

醉酒当歌 提交于 2019-12-01 14:10:55
问题 I am feeling a bit awkward, because I am generating a mail-body with PHP without escaping the variables. In HTML I am using htmlspecialchars() or similar functions, for command lines escapeshellarg(), but for mails? For example something like this: <?php $usercontent = $_GET['usercontent']; mail("dummy@nowhere.tld", "My Subject", "My body with $usercontent included"); ?> What could a possible attacker do with a script like the one above and how could I protect against such an attack? Or is

My E-Mails Always Go To Spam Folder [closed]

旧时模样 提交于 2019-12-01 13:17:27
In my server i send mails by PHP but my mails always go to spam folders. I did spf record thing but it didn't matter. Also i use google apps service with this domain. Please Help Mail Original: Delivered-To: mektup@gmail.com Received: by 10.42.178.133 with SMTP id bm5cs95762icb; Fri, 31 Dec 2010 19:49:46 -0800 (PST) Received: by 10.223.112.1 with SMTP id u1mr875459fap.109.1293853785941; Fri, 31 Dec 2010 19:49:45 -0800 (PST) Return-Path: <apache@loft1397.serverloft.eu> Received: from loft1397.serverloft.eu (loft1397.serverloft.eu [82.25.120.6]) by mx.google.com with ESMTPS id 17si15455863fau.0

How to avoid my mails sent from PHP mail() being marked as spam?

我们两清 提交于 2019-12-01 06:01:10
I'm using the following to send registration e-mails: $subject = 'subject is here'; $message_raw = 'e-mail text'; $message = base64_encode($message_raw); $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/plain; charset=UTF-8' . "\r\n"; $headers .= 'Content-Transfer-Encoding: base64' . "\r\n"; $headers .= 'From: papa.sk <register@papa.sk>' . "\r\n"; $sendit = mail($to, $subject, $message, $headers); For some people the e-mails are put into the spam folder (in gmail too). In /etc/postfix/main.cf I have this: myorigin = /etc/mailname smtpd_banner = papa1.vps.websupport.sk

How to avoid my mails sent from PHP mail() being marked as spam?

允我心安 提交于 2019-12-01 03:16:47
问题 I'm using the following to send registration e-mails: $subject = 'subject is here'; $message_raw = 'e-mail text'; $message = base64_encode($message_raw); $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/plain; charset=UTF-8' . "\r\n"; $headers .= 'Content-Transfer-Encoding: base64' . "\r\n"; $headers .= 'From: papa.sk <register@papa.sk>' . "\r\n"; $sendit = mail($to, $subject, $message, $headers); For some people the e-mails are put into the spam folder (in gmail too).

Parse inbox in Postfix using Java

坚强是说给别人听的谎言 提交于 2019-11-30 20:22:59
问题 I am using Postfix as a mail server and I configured it to receive emails to some destination. I want to make a Java code that parse the incoming emails and do some action. Any idea where to start or what to use? 回答1: I see two approaches: Parse the mailbox (or mail) itself using jcup or jflex for instance Add an imap server and use some java lib to query the imap server. (it can provide you filters for instance) The imap approach lets you select unread mail, mail by id (single or multiple),

smtp send mail via postfix and nodejs nodemailer connection closed

心不动则不痛 提交于 2019-11-30 17:02:16
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 server thanks! I had similar problem (maybe the same) and I figure out that this happens when i use self

How do I painlessly receive mail in linux and feed it to Rails?

醉酒当歌 提交于 2019-11-30 05:25:56
I've been googling all night for postfix howto's, but still I couldn't figure out how do I manage to receive email on linux-server (being more specific - Ubuntu). All I need is a catch-all mailbox which gets all emails and feeds them to the ruby script (which then passes it to Rails, of course). I was able to set-up postfix for sending emails a while ago and I have to say - it wasn't painful at all, I did almost nothing besides actually installing it. Could you suggest a good howto, or a recipe, or an alternative easy-to-setup mail-server that could solve the issue? There are two parts to this

Postfix - How to process incoming emails? [closed]

坚强是说给别人听的谎言 提交于 2019-11-29 21:51:22
问题 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 . Does anybody know how to process incoming emails for virtual mailboxes in postfix? I am building web application where users add new content by sending emails to application. Email address used for each user is custom (eg. 123456@myservice.com) and it is dynamically created as a Postfix virtual mailbox. User

Correct email headers for delivering mailing list mail

冷暖自知 提交于 2019-11-29 21:08:12
I'm writing an application that allows users to send email to dynamically-created mailing lists. For example, a user can send an email to my-team@site.com (the site is a league management site for sports leagues) and the email will be sent to everyone on that users's team. I'm trying to figure out what the email headers should be to deliver the email correctly and make all the From and To fields look right. In Gmail, when you get an email from a mailing list (I'm looking at an email from google groups), it says that it came from the person who sent it and that it was sent to the list address,

php mail() Goes to spam but when sent via SMTP Server it works fine? [closed]

萝らか妹 提交于 2019-11-29 15:52:36
I am currently setting up my webserver so then i can send emails via PHP Code, the problem i have is that the emails sent via php mail() always send to my gmail spam where as when im sending emails via the SMTP Server the same VPS has on it on Gmail it dont send to spam. Is their anyone that can help with this? Updates: Sending Via Ryan@Ryanteck.org.uk & Noreply@Mc-Serverlist.co.uk For PHP Mail() (Same happens with ryan@ryanteck.org.uk) When Sent Via PHP Mail() Or Webmin Email It Sends To Spam When Sent Via SMTP Server Via Gmail it sends ok PHP Mail Raw Message : http://pastebin.com/TP2UfDP7