postfix-mta

Postfix: allow inbound relaying from only authenticated MTAs

天涯浪子 提交于 2019-12-11 20:23:35
问题 I want to authenticate our customers' MTAs (Exchange for the most part, pointing to us as its smart host) to our relay server (Postfix 2.11.3, CentOS 6.6) and accept mail from only those authenticated MTAs. I've looked into SASL, but as far as I can tell, its use case is for authenticating inbound MUAs or outbound MTAs. How does one authenticate inbound MTAs using Postfix? Thanks, Nathan EDIT: From my main.cf: smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth smtpd_sasl_auth_enable =

How to convert a regex from PCRE to POSIX format, that warns about repetition-operator operand invalid?

我与影子孤独终老i 提交于 2019-12-11 07:56:11
问题 Trying to anonymize received headers for relayed messages from authenticated postfix users, there is an example from https://we.riseup.net/debian/anonymizing-postfix: /^Received: from (.* \([-._[:alnum:]]+ \[[.[:digit:]]{7,15}\]\)).*?([[:space:]]+).*\(Authenticated sender: ([^)]+)\).*by (auk\.riseup\.net) \(([^)]+)\) with (E?SMTPS?A?) id ([A-F[:digit:]]+).*/ REPLACE Received: from [127.0.0.1] (localhost [127.0.0.1])$2(Authenticated sender: $3)${2}with $6 id $7 When editing the file regexp:

Configure Postfix with Virtual Mailboxes to forward to a script [closed]

纵饮孤独 提交于 2019-12-11 03:19:25
问题 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 7 years ago . I am using the Postfix MTA with a virtual configuration from MySQL for the Users and Forwardings. Now I want some Adresses (that are dynamicaly generated, for writing via E-Mail to a Forum) to be forwarded to a php-script. I already have tried to put the script quoted and piped as destination bit it doesn't work

Problems with spaces in php mails

只愿长相守 提交于 2019-12-10 11:04:03
问题 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,

sudo yum install postfix mysql-libs error

独自空忆成欢 提交于 2019-12-10 10:05:45
问题 I am trying to install postfix through yum: sudo yum install postfix After I run the code below I get the following error: Loading mirror speeds from cached hostfile * rpmforge: mirror.hmc.edu Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package postfix.x86_64 2:2.6.6-6.el6_5 will be installed --> Processing Dependency: mysql-libs for package: 2:postfix-2.6.6-6.el6_5.x86_64 --> Finished Dependency Resolution Error: Package: 2:postfix-2.6.6-6.el6_5.x86

send email from swift osx application

旧巷老猫 提交于 2019-12-09 09:52:11
问题 I am facing problem on sending mail from my osx swift application. To send mail i used the below code import Foundation import Cocoa class sendemail : NSObject, NSSharingServiceDelegate{ func sendEmail() throws { print("enter email sending") let body = "This is an email for auto testing throug code." let shareItems = [body] as NSArray let service = NSSharingService(named: NSSharingServiceNameComposeEmail) service?.delegate = self service?.recipients = ["abc@dom.com"] let subject = "Vea

How to send email with Phpmailer with DKIM signature?

时光总嘲笑我的痴心妄想 提交于 2019-12-09 03:18:46
问题 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

Parsing emails as soon as they are received

北城余情 提交于 2019-12-08 13:04:27
问题 I have users sending emails with some text I need to extract. Each user's email is mapped to a single mailbox. I'm currently using a cron job that polls the mailbox (postfix) every 5 minutes, checks for new messages, and sends it to a queue where I have workers parse them. I have two main questions: Is there a way I can parse the email as soon as it's received instead of polling the server? Also, how could I implement this to be scalable? For example, if there are 50 incoming messages per

Why smtpd_recipient_limit and other email related options in postfix does not work?

喜欢而已 提交于 2019-12-08 09:50:33
问题 I have a server that runs on apache, and I am sending emails from that server. I want to set the number of recipients that each outgoing email can send to. I am following this tutorial and this manual - it seems to be as easy as adding smtpd_recipient_limit=2 to master.cf like below, reloading postfix, and running a test with 3 recipients. Each recipients still get email, with no error messages in /var/log/syslog file below. What is missing? # See /usr/share/postfix/main.cf.dist for a

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

…衆ロ難τιáo~ 提交于 2019-12-07 16:44:29
问题 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:/