Questions tagged [postfix-mta]

QUESTIONS ABOUT POSTFIX ADMINISTRATION ARE OFF-TOPIC. Server admin questions may be asked on Server Fault. Postfix is a free, open-source, widely used cross-platform mail server (mail transfer agent), available on all common platforms.

The postfix-mta tag can be used for programming questions related to the Postfix mail transfer agent. Non-programming questions relating to setting up a mail server are off-topic for Stack Overflow. Such questions are often on-topic on Server Fault.

Postfix is a popular mail transfer agent (MTA), created as an alternative to Sendmail by Wietse Venema. Postfix is intended to be similar enough to Sendmail to be comfortable for those already familiar with Sendmail. However, Postfix is specifically intended to be fast, easy to administer, and secure, and will deviate from Sendmail convention when necessary to achieve those goals.

Postfix is free and open source, and offers a source distribution that is capable of running on a wide range of Unix-like systems, including Linux, Solaris, FreeBSD, AIX, HP-UX, and Mac OS X. Some system vendors also provide pre-built binaries for ready-to-run use.

Useful Links

1541 questions
9
votes
2 answers

How can I force the From: header (envelope sender) in PHP without putting it in mail()?

I have a development web server (CentOS LAMP stack) that uses SMTP relays setup in postfix to send email. We use mailgun with multiple users, a setup similar to this, but with specific users instead of just wildcard…
LeonardChallis
  • 7,759
  • 6
  • 45
  • 76
9
votes
4 answers

Postfix and save to sent mail dir

I know this might be a dummy question or a question that comes from lack of knowledge, but I hope someone can still answer it. I did try to read a lot of Postfix documentation but found no answer to this. I don't even know if it's a Postfix…
sd1sd1
  • 1,028
  • 3
  • 15
  • 28
9
votes
2 answers

How to send emails from my server with a mail server and nodejs

I have a server with static IP in my home, I serve my own web pages with a domain and all works fine. in my web pages, you can register by email and password. when you register a node module called nodemailer, sends an email from a google account,…
andrescabana86
  • 1,778
  • 8
  • 30
  • 56
8
votes
3 answers

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

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…
orion3
  • 9,797
  • 14
  • 67
  • 93
8
votes
2 answers

Python : Postfix stdin

I want to make postfix send all emails to a python script that will scan the emails. However, how do I pipe the output from postfix to python ? What is the stdin for Python ? Can you give a code example ?
Lucas Kauffman
  • 6,789
  • 15
  • 60
  • 86
8
votes
2 answers

How to receive email on Google Compute Engine

Google's compute engine blocks all outgoing email ports by default. Quote from Compute Engine Documentation Compute Engine blocks or restricts traffic through all of the following ports/protocols between the Internet and virtual machines, and…
8
votes
2 answers

Postfix - Recipient address rejected: User unknown in local recipient table

I am learning (trying) to build my own mail server in Centos 7 VM. I have come to a problem when my incoming mails are getting rejected. Using POSTFIX I am trying to send emails from gmail to my mail but it is stucked by this error. Below I will…
marhyno
  • 677
  • 1
  • 8
  • 20
8
votes
1 answer

How do I create an account on Postfix?

How would I go about adding an account to Postfix and secure it with a password? I've already setup everything else, and root works.
Albert Zeller
  • 89
  • 1
  • 1
  • 3
8
votes
1 answer

Is there a better tool than postcat for viewing postfix mail queue files?

So I got a call early this morning about a client needing to see what email they have waiting to be delivered sitting in our secondary mail server. Their link for the main server had (still is) been down for two days and they needed to see their…
Geekman
  • 599
  • 7
  • 18
8
votes
5 answers

Rails ActionMailer problems on Mac

I've been working on learning to use Rails the last couple days and I've run into something that I haven't been able to solve with Google. So I'm just creating a basic contact form that sends an email. Everything seems to be working ok in testing,…
seth
  • 701
  • 9
  • 17
8
votes
2 answers

best way to store mail in DB (postfix)

Please give me a best solution to store all mails (send, receive, forward) in mysql with postfix? and Is this the correct approach?
superuser
  • 519
  • 2
  • 5
  • 13
8
votes
3 answers

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

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…
Vincent Peres
  • 1,003
  • 1
  • 13
  • 28
7
votes
1 answer

How to create a file with terrafom and include variable as literal?

Using terraform v0.12.9 and building a file using template_file data source, I could not use double dollar signs $$ to treat input ${data_directory} as literals. Looking for solution to sort out this in a right way or looking for any other…
hobak
  • 73
  • 1
  • 1
  • 3
7
votes
1 answer

How do I configure Postfix to only relay emails from a specific domain?

I've already answered my own question and may later update this question to reflect on my starting point/the steps I took to get to my solution, but figured I would ask a question that I started with and the result that took me an unreasonable many…
jsonV
  • 1,650
  • 2
  • 9
  • 23
7
votes
1 answer

Postfix - How to process incoming emails?

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…
Borivojević
  • 368
  • 2
  • 5
  • 12