Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
2 answers
33 views

postfix error handling to not lose the mail

I have a website with a form. When submit the form php sends a mail to a local gateway. php code looks like this: $ok = @mail($emailData['to'], $emailData['subject'], $message, $emailData['headers']); ...
cruunnerr 's user avatar
0 votes
0 answers
110 views

PHP PEAR Mail STARTTLS failed error 220 with postfix

I'm running postfix with dovecot. I'm trying to use the PHP Pear Mail package to send e-mails, but I can't get it to work. The error I get is this: authentication failure [SMTP: STARTTLS failed (code: ...
Aviation4001's user avatar
0 votes
0 answers
150 views

Force non-empty MAIL FROM for outgoing email

I am using postfix on a Debian server, primarily to send outgoing email for websites and notifications, and have run into an issue where outgoing email to a certain mailing list provider is rejected ...
InterLinked's user avatar
0 votes
1 answer
607 views

How to force postfix to use smtp relay

When I execute, the following line postfix uses my sendgrid relay server echo "Subject: sendmail test" | sendmail -v [email protected] But when I execute the sendmail function via the PHP script ...
Richard Olthuis's user avatar
0 votes
1 answer
530 views

PHP mail() returning FALSE but whole rainloop works - Postfix, Dovecot, PHP 7.3

I had this problem earlier but somehow managed to repair it. One month after I had to reinstall Dovecot and Postfix and the same error appeared. In my php.ini which is located at /etc/php/7.3/apache2/ ...
Junek's user avatar
  • 3
0 votes
1 answer
272 views

Mail server set up for inbound mail on a subdomain to trigger php script

I'm trying to set my company server up to be able to receive emails to a certain account on a subdomain of our main domain i.e.: [email protected] Those incoming mailers should trigger a ...
ajax1515's user avatar
  • 167
1 vote
0 answers
325 views

Php send mail from Cron (postfix + sendmail)

I have a PHP script that I run from cron. I never get emails. maillog: postfix/sendmail[2223187]: fatal: execv /usr/libexec/postfix/smtpd: Permission denied Command-line: * * * * * root /usr/bin/php /...
VJS's user avatar
  • 11
0 votes
0 answers
127 views

Outgoing Mail not working after changing port 25

I want to block Port 25 as my IP got blacklisted multiple times due to some spammers using my server. I've changed the Port to 578 in Postfix and restarted postfix & on top I've as well changed ...
TesterOlaf's user avatar
0 votes
1 answer
623 views

laravel shows error when sending email using tls and my own postfix/virtualmin server

We have installed our own postfix/virtualmin server and we have a laravel application,the problem is when we use external smtp servers, it is not problem to use tls option, and the emails are getting ...
logax's user avatar
  • 139
0 votes
1 answer
227 views

Postfix not receiving bounce mails

I am using Postfix to only send Mails out (via my noreply mail), which works great. I would like to use my support mail, which is running on the server of my mail provider, to receive user replies and ...
TesterOlaf's user avatar
0 votes
1 answer
222 views

Solved - Postfix SMTP port Stange Activity

Hello ServerFault community, I have a Postfix and Dovecot mail server based on MySQL, I had a problem with MySQL so I had to reinstall it and thet's where the problems started happening. RoundCube ...
Nicolò's user avatar
  • 25
0 votes
1 answer
874 views

Run incoming mail through PHP script - Postfix

I have followed this answer Pipe all Postfix email for a domain to PHP script - Centos7/EC2 to direct incoming mail for a specific address to a PHP script. My aliases file entry looks like: mail-...
Kline's user avatar
  • 226
0 votes
3 answers
2k views

Not able to send mail using postfix-sendmail and getting bounced

The emails are not being sent to email addresses with domainname.co as domain name. I have in Ubuntu system three users namely root, ubuntu & domainname. The following is the log(tail /var/log/...
Dushyant Joshi's user avatar
4 votes
0 answers
1k views

Ways to integrate incoming and outgoing mail webhook in Postfix

I am trying to build an application in PHP which will be able to create a Ticket whenever a new mail arrives on a specific account and whenever a reply is done for that email, the application will ...
Pankaj Jha's user avatar
0 votes
1 answer
231 views

How can I configure postfix so all e-mails from php mail will also be scanned with spamassassin?

I see a bunch of articles about how to scan mail in postfix from a certain IP address in the network or via submission, etc. But I think php mail uses sendmail and to inject the mail locally. What ...
Mikey A. Leonetti's user avatar
1 vote
1 answer
306 views

Security Related to Send-Only Postfix Server

New Ubuntu admin here, trying to enable the PHP mail() function on my server. I have it working, but am wondering if my setup is secure... My [full] mail solution is as follows: 1) For incoming mail ...
sevan1028's user avatar
1 vote
0 answers
45 views

Postfix check how many emails a user is trying to send before queuing them

I have Postfix installed, and set as a send-only smtp server, on a VPS(running ubuntu 18.04). Now I want to limit a user to 100 emails/day(if possible saving that limit - sent and remaining - inside ...
Melody's user avatar
  • 23
0 votes
1 answer
1k views

Postfix sends plain text emails from PHP but rejects html

After moving to another host my site stopped sending E-mails (UTF-8 HTML). But I'm still able to send text emails like these: echo test | mail -t [email protected] -s test php -r 'mail("[email protected]",...
oxfn's user avatar
  • 121
1 vote
1 answer
480 views

Postfix - smtp.mailfrom domain of a php app

How to setup Postfix/PHP to have the smtp.mailfrom in the form of [email protected]? I have multiple users on the server, and each one has one or more WordPress installations, but ...
steakoverflow's user avatar
0 votes
1 answer
216 views

Best way to restrict/manage PHP apps to use my postfix?

I want to allow PHP apps to send mail but under very restricted conditions. And I don't want to allow sendmail-like command for PHP apps (I'm using chrooted PHP and it's too much headache), thus I ...
Jiri B's user avatar
  • 597
0 votes
1 answer
168 views

How much of a security risk is the mail() function for WordPress websites?

On a VPS with Debian 9 I have a few working https WordPress sites served using Nginx + PHP 7.0 + MariaDB. I also have a mail server with Postfix + Dovecot. Everything is working ok. Yet, I'm very ...
Ludvik's user avatar
  • 21
3 votes
1 answer
791 views

Hosting multiple websites (Apache Virtual Hosts), Postfix settings for sending mail FROM those domains?

I am not sure that this was the right solution in the first place but I have Postfix up and running on my Ubuntu VPS with G-Suite using relayhost = [smtp.gmail.com]:587 Mail is delivering fine, ...
Jesse's user avatar
  • 31
0 votes
0 answers
665 views

Postfix lost connection after AUTH

Postfix mailserver installed on CentOS 7.3, Nginx php-fpm. Sending mail works from console but using php mail function, it doesn't work. If it is needed I can add php.ini. I am getting following error ...
CryptoMiningPoolSetupYiimp's user avatar
-3 votes
1 answer
4k views

How to Hide Sender IP Address in Email Headers?

I'm using PHPMailer and Postfix in my web server and hosting an application that will often send emails out, like: password recovery, user registration, new orders, orders update, etc.. With ...
devasia2112's user avatar
0 votes
1 answer
542 views

Contact form from ubuntu to Zoho email address

I would like some support in order to get my Postfix configuration working with my Zoho email account. What I am trying to do is to send a message from my contact form in http://www.g3eo.com/#!/...
Gery's user avatar
  • 101
0 votes
1 answer
357 views

postfix/opendkim not sign email from php on second domain

I have two domains, called them example1.com and example2.com on example1.com all emails sent with dkim sign. on example2.com emails from php sent without dkim sign, but if send email from console, ...
Waki's user avatar
  • 101
0 votes
1 answer
1k views

Postfix won't send PHP mail() function from form

I got postfix to send me emails from my server via console using echo "body example" | mail -s "subject example" my@email, but when I try to send an email from my website via mail(), the php function, ...
Nick Borisenko's user avatar
0 votes
0 answers
348 views

postfix new mail notifications

We're looking at embedding a Postfix mail setup into an existing web (php / mysql) product so that it can offer inbuilt email send/recieve support along with mail account management (its a CRM). ...
Steve Childs's user avatar
-2 votes
2 answers
319 views

Mitigating spam on Linux server where all MTA's (Postifix, PHP Mail() function) etc. are disabled [duplicate]

We have a Debian Squeeze server running a fairly standard LAMP stack (back in the days it was set up using the Perfect Server guide at Howtoforge, so we're using ISPConfig as our backend admin panel) ...
Arni J's user avatar
  • 75
1 vote
1 answer
930 views

Force PHP mail to avoid using postfix root@myorigin; use /etc/mailname instead?

I recently posted an issue setting up a mail server with postfix and virtual aliases. I solved the problem here: Postfix/Dovecot - Multiple Domains and Multiple Linux Accounts To sum it up, I set ...
Mookman288's user avatar
1 vote
1 answer
1k views

Postfix on CentOS 6.6 is overwriting my return-path header?

I'm dealing with this problem on my CentOS 6.6 server: when I send a mail with PHP/phpBB (mail() function), Postfix overwrites the return path with apache@servername. The issue is also expained in ...
Dr. Gianluigi Zane Zanettini's user avatar
15 votes
2 answers
35k views

How to verify if my postfix uses really TLS to send outgoing mails?

I successfully installed Postfix on my VPS. I would like to send encrypted email. I installed all certificates and private keys and set my conf file: smtpd_tls_key_file = <path to my private key&...
gdm's user avatar
  • 479
0 votes
1 answer
303 views

postfix cannot send emails [duplicate]

I recently migrated some sites from my old server to a new one with the same configuration on DigitalOcean. The sites working great except for the php mail() function that isn't sending emails. The ...
GodFather's user avatar
  • 119
0 votes
1 answer
120 views

Postfix + php translating email addresses sent to local domains to [email protected] [closed]

My first question here, if I don't provide sufficient info straight away, please take it easy on me with the downvotes ;-) I'm running a VPS hosted by afterburst.com with OpenVZ I installed and ...
Edwin Krause's user avatar
1 vote
2 answers
1k views

How to pipe postfix into Codeigniter controller

I currently have postfix piping into a PHP script to process the email via an alias. catchall: |/var/www/vhosts/website/httpdocs/scripts/incoming_mail.php However, I wish to use the DB config etc ...
Jim Wright's user avatar
-1 votes
1 answer
158 views

Configure postfix to run filter only with selected mail else all other mail pass without being filtered

I am running postfix and I'm using ubuntu 14.04. I created php script and i injected it into postfix to filter incoming mail. All run as I wish. But Now I want my postfix to run filter only with ...
xtensa1408's user avatar
3 votes
2 answers
2k views

Fail to trigger my php script when mail received by my Postfix

I am running Postfix mail on ubuntu 14.04.1. I want to "trigger a PHP script when Postfix server receives a mail" After investigation and the help of many tuto, . I have configured "postfix" & "...
xtensa1408's user avatar
3 votes
2 answers
3k views

Blocking PHP mailer spam using iptables

I host a public-facing web server running Debian Wheezy, and latest versions of Postfix, Apache, PHP, Spamassassin, ClamAV, rootkit hunter. Apache is configured with a handful of vhosts, each tied to ...
hazymat's user avatar
  • 390
2 votes
2 answers
901 views

PHP emails, Postfix and Message Queue

I've been running a web platform that needs to send a considerable amount of emails daily. At the implementation date I and my partner decided to setup Postfix on the server and use Swift Mailer class ...
TCB13's user avatar
  • 1,258
2 votes
2 answers
1k views

smtpd_recipient_restrictions works but not always

I have POSTFIX set up to filter certain email addresses. The main.cf file contains: smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/blacklist, permit_mynetworks, ...
Kolja's user avatar
  • 199
1 vote
1 answer
2k views

Postfix/OpenDKIM not signing PHP sent emails

We installed SPF, DKIM, and DMARC records for email security/verifiability. When sending through the console or a mail client like Outlook or Mac's Mail it processes fully and has all three pass. ...
Darius's user avatar
  • 345
0 votes
1 answer
674 views

Make postfix trigger a php script using always_bcc

I have been having a VERY hard time with this, have searched everywhere, and in utter desperation am posting this question. I am using postfix and dovecot on ubuntu 12.04. I am trying very hard to ...
ScioMind's user avatar
11 votes
5 answers
42k views

Roundcube & Postfix SMTP: SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:s3_pkt.c

I have a Postfix / Dovecot / Roundcube setup that I use personally, as well as provide to other users. I am attempting to transfer this entire setup to a new box, but having some issues. Mail ...
1n5aN1aC's user avatar
  • 145
-1 votes
1 answer
757 views

Posfix pipe all incoming emails to PHP.... NO REWRITING [duplicate]

I'm trying to get Postfix to pipe ALL email coming in on a specific domain to a PHP script. So far I've been able to do this via a tutorial I found on the web and also editing the /etc/postfix/virtual ...
user1913559's user avatar
0 votes
0 answers
190 views

emails are coming from localhost instead of php sendmail_from

I'm trying to understand what I'm missing here. I have following PHP script: <?php ini_set('sendmail_from','[email protected]'); mail('[email protected]',rand(),rand()); ?> ... and even though I set ...
alexus's user avatar
  • 13.5k
0 votes
1 answer
498 views

postfix just installed on ubuntu, but mail() not working in php

I have a new server. Just installed Postfix (apt-get install mailutils), and configured postfix as "Internet site". Works fine when I'm logged in as regular user on the command prompt and use "mail xx@...
user410932's user avatar
0 votes
3 answers
579 views

Limit for outgoing emails for every virtual host

I have virtual hosts on Apache server. I need limited the outgoing emails sent via mail() function(from PHP). Max 100 outgoing emails per day for every host :) How can I do this?
user3611796's user avatar
1 vote
4 answers
2k views

Configure postfix to block PHP-sent mail() to certain recipients

I'm trying to prevent my CentOS 6.5 server from sending out emails to a certain list of recipients. ([email protected], [email protected] and so on). I've configured postfix like ...
Dr. Gianluigi Zane Zanettini's user avatar
3 votes
2 answers
2k views

postfix sending mails to unknown addresses

I was checking my munin tables and saw a huge list of deferred mails in postfix and looking into /var/log/mail.log gave me an idea: I am sending mails to unknown mail addresses: Dec 23 08:21:32 ...
Riccardo's user avatar
  • 131
1 vote
1 answer
518 views

PHP MAIL() dsn status

Is there a way to get the DSN status of an email set with postfix, using php mail function or any other library ? I can parse the log for the id and DSN status, but that won't be quite good for the ...
Alin Andrei's user avatar