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
2
votes
0 answers

Postfix After-Queue Content Filter full example

i'm trying the Simple content filter example: i followed the steps mentioned here http://www.postfix.org/FILTER_README.html#simple_filter but in line 24 of the content filter that can be a simple shell script like this you need to specify your…
Byte legion
  • 169
  • 1
  • 6
2
votes
1 answer

EC2 Scalable environment sending mail from instances

I have an scalable environment on amazon cloud. I want to send emails (transactional, mailing) from EC2 instances. I am using one elastic Ip for my load balancer. I have installed postfix on all my instances. Now, I got mail from amazon saying…
Venu
  • 7,243
  • 4
  • 39
  • 54
2
votes
0 answers

iRedMail: Domain alias not working with external mails

After successfully setting up an iRedMail server for my main domain, I tried to add my secondary domain as an alias by following the steps on here: https://docs.iredmail.org/sql.add.alias.domain.html This didn't do the trick just yet, so I…
2
votes
1 answer

postfix, dovecot, roundcube adding email account

I inherited a mail server setup with postfix, dovecot, roundcube setup on AWS. Virtual users stored in roundcube. How do I add an email account? Do I add the account at roundcube db and it will automatically update postfix and dovecot or vice…
2
votes
3 answers

Emails sent from postfix via a Rails app are getting sent to spam in gmail

When using 'mail' command to send email to a gmail user, the email goes through fine. When sending an email using a Rails app, the email is sent to the spam folder for the gmail user. Can someone help me think through this?
Josh
  • 3,601
  • 14
  • 50
  • 71
2
votes
1 answer

Cannot match spamassassin custom regex rule

I want to match this pattern in my spamassassin's filtering rules: Password archivio: 666 Per conto di: There is a space after di: and the number can be of undefined digits. in my custom.cf I have created this rule body CUSTOM_SPAM_RULE …
silvered.dragon
  • 407
  • 1
  • 7
  • 19
2
votes
0 answers

Modoboa server not working with external emails (like Google, Yahoo)

I have setup modoboa server in AWS lightsail instance from this link [https://www.linuxbabe.com/mail-server/email-server-ubuntu-18-04-modoboa] Internal emails are working ( username@domain.net to username2@domain.net )but an email from an external…
Yash Shukla
  • 132
  • 1
  • 9
2
votes
1 answer

Java executed when receiving mail crashes

What i want to do I want to run the jar when I receive an email. I wrote the configuration file as follows. /etc/aliases mail: mailuser,| "/bin/bash /tmp/mailtest/mailtrigger.sh" /tmp/mailtest/mailtrigger.sh #!/bin/bash echo start >>…
fsk5304
  • 395
  • 1
  • 3
  • 11
2
votes
0 answers

Configuring symfony to send mail via Postfix

After installing Postfix on my Ubuntu server and getting my Symfony application running, I'm attempting to have the system send emails via Postfix. I tested it out in the terminal to make sure that it sends properly and it does, but I'm confused as…
Majo0od
  • 2,278
  • 10
  • 33
  • 58
2
votes
1 answer

How to configure Postfix with transport_maps and randmap?

I'm currently using a postfix server with 4 IP (relay1, relay2, relay 3, relay4) for outgoing emails I'm using transport_maps to define for each email domain (outlook.fr, orange.fr ...) the relay to use It works well but I just realized that my…
Nino Noisette
  • 21
  • 1
  • 3
2
votes
3 answers

MailKit gets an SslHandshakeException with LetsEncrypt SSL certificates

I have a server (Centos 7) setup to be used as mail server. Using postfix/dovecot/opendkim/opendmarc.. It works as it should, users are able to connect their emails using gmail for example. Able to send and receive mail. Also when I use MailKit…
Somaar
  • 135
  • 2
  • 8
2
votes
1 answer

fail2ban test send email

I am trying to test the sending of emails with fail2ban, apparently mta = mail should do the trick and I also tried the mail action. But I am not sure how to test if it is working. From what I read action_mwl sends email on start and stop, but it is…
Bradox
  • 109
  • 1
  • 9
2
votes
1 answer

Send emails from GCP compute instance using smtp-relay of GMAIL

I am trying to send mail from a compute instance using Gmail's smptp relay and I have enabled smtp-relay through my GSuite account and have also configured POSTFIX in my compute instance and as per mail.log file the mail has been delivered but it is…
2
votes
1 answer

opendkim[8143]: initgroups(): Operation not permitted

I have configure Opendkim with Postfix and configured everything as per the document referred multiple sites. But finally got the below error. opendkim[8143]: initgroups(): Operation not permitted Could anyone help on this fix the same. As i googled…
2
votes
1 answer

Receiving an SMTP message

I'm trying to implement an SMTP server. The problem is after my socket accepts a new connection, it receives no bytes (blank line in example output) and therefore my read loop is terminated. I tried sending 220 and 250 commands after the initial…
GalAbra
  • 5,048
  • 4
  • 23
  • 42