postfix

Processing an Email Bounce back in CakePHP and Postfix

Hi, I'm trying to handle bounced message and send to a responsible System Administrator. I use CakePHP Email Component to send the message. On server side, I use postfix to transport the message. function sendAsEmail($data) { $Email->sendAs = 'html'; $Email->from = $user['Sender']['username'] . '@example.com'; $Email->return = ...

postfix problem sending email "RCPT reject localhost not listed"

i am hacing a hard time getting postfix to send emails. this is the mail.log entry: Jun 30 18:27:46 vm21 postfix/smtpd[15682]: warning: ::1: address not listed for hostname localhost Jun 30 18:27:46 vm21 postfix/smtpd[15682]: connect from unknown[::1] Jun 30 18:27:46 vm21 postfix/smtpd[15682]: NOQUEUE: reject: RCPT from unknown[::1]:...

How to use os.spawnv to send email copy using Python?

First let me say that I know it's better to use the subprocess module, but I'm editing other people's code and I'm trying to make as few changes as possible, which includes avoiding the importing any new modules. So I'd like to stick to the currently-imported modules (os, sys, and paths) if at all possible. The code is currently (in a ...

How can I extract all conversations in a Postfix log from a particular client using awk?

I am trying to extract conversations from a Postfix log file based on the client that initiated them. This is the awk script that extracts the matching message IDs: awk '/client.host.name/ && !(/timeout/||/disconnect/) { sub(":","",$6);print $6}' maillog This is using a standard Postfix maillog as input (see below for sample data). Wha...

How do I inject a message into Postfix's queue?

I am working on an application that quarantines and routes email. Let's say in this application that I have an email message in a directory of my choosing and it has been scanned by our software and is considered "clean". How do I inject this message back into Postfix? ...

Migrating from postfix to Zimbra, one hurdle left - Need to rewrite 'To:' before local delivery

If there is another way to go about this, I would be glad to hear it. I have been googling this one piece of the puzzle for most of the day. I have outsourced spam filtering for a handful of accounts in the domain (I'll use example.com). Anything coming in for [email protected] gets rewritten to [email protected] in the aliases file....

What is needed to add emailing capabilities to web application?

I have java web application to which I'd like to add emailing capabilities, however, I'm unsure what is needed to accomplish this. Specifically I want my app to be able to: Send emails confirming sign-up Allow users to send emails to one another, using my app's domain i.e. [email protected] From my research it seems I'll need a mail tra...

Postfix to infix with unary/binary operators

I am trying to make a converter from postfix to infix notation and need some help. There is already a question about infix-to-postfix conversion, which gives an example I am failing to convert back. (Note: a minus sign is missing there!) The following is the output of my converter, where the 1st "column" is postfix input, the 2nd is my ...

Which of the following postfix notations correctly represents infix sum 1+2+3+4?

I am testing an infix-to-postfix-to-infix converter and found some kind of uncertainty. For example, a simple infix sum 1 + 2 + 3 + 4 can be converted to postfix one 1 2 + 3 + 4 + assuming that operators with equal precedence are not accumulated. If they are then I get 1 2 3 4 + + + On the other hand, all the following postfix e...

PHP mail formatting issue - Why do CRLF header line endings break HTML email in Outlook?

I'm using the PHP native mail() function to send HTML emails and have a formatting problem in the users most common email client - Outlook 2007 (in addition to some other email clients) - all the html tags are exposed so it looks like gibberish to a non-web-developer. I'm sending HTML email the same way that the PHP manual demos it. Exa...

postfix configuration to receive emails

Hi guys, I have a requirement to accept all incoming emails into our server and process them through a script. I will need some pointers as to what should be the required configuration. This is the current main.cf :- myorigin = /etc/mailname smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no # appending ...

Postfix as null client for multiple domains

How do I setup postfix as a null client for two domains on the same host? I currently have postifx setup as a null client for one of the domains (complete with SPF records). How do I add one more domain to the setup? And after adding the domain, how do I make PHP mail() send out email appropriately from the corresponding domains/IP addre...

Track Postfix Emails

Where can i find some documentation on how to track the emails I am sending. I have Postfix on Ubuntu Lucid, and I want to discover what headers to add to the sent emails. Something like Sendgrid's features: opened emails, spammed emails, and unsubscribe footer. ...

Real world pre/post-order tree traversal examples

I understand pre-order, in-order, and post-order tree traversal algorithms just fine. (Reference). I understand a few uses: in-order for traversing binary search trees in order, pre-order for cloning a tree. But I can't for the life of me come up with a real world task that I'd need post-order traversal to accomplish. Can you give me ...

Why does the postfix increment operator take a dummy parameter?

Have a look at these function signatures: class Number { public: Number& operator++ (); // prefix ++ Number operator++ (int); // postfix ++ }; Prefix doesn't take any parameter but postfix does. Why? I thought we can recognize them with different return types. ...

postfix: programmatically adding a user

I asked this question two months ago and got nary an answer. In fact I earned the tumbleweed badge for asking a question that garnered so little interest. However, this seems like a straightforward question with a definitive answer and I really need to be able to do this. If there's still no answers I'd sure appreciate if anyone has an...

Postfix hangs when sending email

If I try to send an email as follows, the process hangs and nothing happens: >>> from django.core.management import setup_environ >>> from cube import settings >>> setup_environ(settings) 'cube' >>> from django.core.mail import send_mail >>> send_mail('Subject', 'Message', '[email protected]', ['[email protected]'], fail_silently=Fal...

Write a script to do content filtering with postfix

How can i write in python or ruby a script to do content filtering in postfix via smtp or uucp (not pipe)? There is some examples? ...

Installing Postfix without MySQL? (all I want is to send mail from Django/PHP)

I'm currently setting up two servers, one for me and one for a client. Mine is purely a Django server with no PHP in sight. The other is a PHP server with no Django in sight. They are both VPSs with Ubuntu Server 10.04 Lucid on them. Both require some sort of mail server so the Django and PHP applications can send mail from the server. ...

What is the average capacity of a postfix mail server?

I appreciate there is no 'set' answer to this question. I am trying to assess the performance of our dedicated mail server for sending out emails. The server is of the spec below: 2G RAM CPU Xeon 2.80GHz (x2) Currently we're only managing to send out approximately 21,000 emails per hour from this. Which I suspect is massively und...