Gray.me.uk - Tech and Linux Blog
  • Home
  • About
  • Contact Me
  • Services
  • Search

Postfix

Selectively BCC ALL emails using postfix by domain.

July 31, 2024 WanderingTechy 0

You can use sender_bcc_maps and recipient_bcc_maps to selectively BCC both incoming and outgoing emails. sender_bcc_maps = hash:/etc/postfix/archive_domain recipient_bcc_maps = hash:/etc/postfix/archive_domain In /etc/postfix/archive_domain Add one entry […]

Plesk attempting to deliver emails locally even though email service is disabled globally.

February 17, 2024 WanderingTechy 0

On one plesk server I manage it does no emails except for password reset. The client has over 100 wordpress sites on this server. Password […]

Preventing emails going out from your development environment.

February 16, 2022 WanderingTechy 0

This is just a short one.  In /etc/postfix/main.cf  Add the following line at the bottom. virtual_alias_maps = static:<your_username> Then in Thunderbird you can collect local […]

Plesk 12 Mailman relaying denied

July 7, 2015 MH Tech. 0

If you get “relay access denied” error messages on mailman and mailman messages are not going out then check to see if you have ::1/128‘ […]

No Image

Logging from to and subject in postfix

October 22, 2014 MH Tech. 0

We needed to analyse the from, to and subject on one of our servers to deal with a persistent spammer. Add this to your header_checks […]

No Image

Tracking which account is sending spam on a plesk server

October 20, 2014 MH Tech. 0

This is not an easy task without knowing a few tricks as the log files are not an awful lot of help.   Providing you have […]

No Image

Small Script to delete 1 or more emails from postfix queue

August 6, 2013 MH Tech. 0

#!/usr/bin/perl $REGEXP = shift || die "no email-adress given (regexp-style, e.g. bl.*\@yahoo.com)!"; @data = qx</usr/sbin/postqueue -p>; for (@data) { if (/^(\w+)(\*|\!)?\s/) { $queue_id = $1; […]

No Image

Problem with php mail function bouncing emails back to postmaster.

August 6, 2013 MH Tech. 0

A server I manage hosts around 200 sites each owned by different webmasters.  A number of these have form to mail style scripts.  A small […]

No Image

Deleting emails from the postfix mailq by email address

July 6, 2012 MH Tech. 0

To clean out some spam from the postfix mailq mailq | tail -n +2 | gawk ‘BEGIN { RS = "" } /email@domain.com/ { print […]

Search this site

Categories

Server Administration Services

I provide server administration, problem solving and other services. Please see Services option on main menu.

$5 a month for an SSD based VPS

digitalocean-logo
Plesk and CPanel licenses at much reduced prices.

Archives

Copyright © 2025 | WordPress Theme by MH Themes