We need to block our users sending emails to specific email addresses. At the moment, recipient restrictions is not enabled in our Postfix relay server so all messages submitted from our Exchange server are accepted and relayed.
See entries in our main.cf file:
Which lines do I need to enable here, in what order, to tell Postfix that if it receives an email, first check if the recipient/s in are not in a blocked list, if not pass on.
Hi,
We use metasend to send e-mail from our app. This works fine with most kinds of mail, for example plain text, HTML with images and mail with attachments.
But we still have one problem: If the to-address is misspelled, then still everything seems to be fine. We don't get any message back... (4 Replies)
I can send external emails from one of my unix boxes but can no longer send internal emails, i have used mailx -v to see what's going on and it seems there is a problem with the RCPT TO part of the log
It seems to add name@nsmail1.mydmn.gov.uk
When it should be just name@mydmn.gov.uk
The... (1 Reply)
maybe a simple question, but i've looked around and not been able to find anything.
is there a restriction on how many recipients can be used in a single mailx command? whether it's a numeric restriction or a size restriction (like 256k for the whole recipient parameter).
thanks a lot. (6 Replies)
hi all.
Am using smtpd_recipient_restrictions & check_recipient_access in postfix.
The hash file looks like this:
emailaddress1 HOLD
emailaddress2 HOLD
The aim is to place email from these recipients in the hold directory,check them then reinject them back in postfix on some... (0 Replies)
Hi To All,
I have a file with email addresses, most of which have names associated with them, it looks like this:
http://img230.imageshack.us/img230/8255/94731317.th.jpg
I am trying to come up with a script to use mailx (or anything else really) to send an email to... (4 Replies)
Hi guys
One of our clients have a problem with sending email to a certain domain. No matter what we try, the mails just dont get delivered.
What I did then, is created a new connector on their Exchange server, pointing all mail sent to their client at "domain1" to relay to our Postfix mail... (0 Replies)
Hello
I hope somebody can help with this.
I have a shell, that in case of failure, sends an email (relaying through an Exchange Server). This Exchange server only offers NTLM authentication.
250-AUTH NTLM
This is the configuration I have:
Postfix 2.1.1 as client.
Cyrus-SASL... (1 Reply)
Hello
I hope somebody can help with this.
I have a shell, that in case of failure, sends an email (relaying through an Exchange Server). This Exchange server only offers NTLM authentication.
250-AUTH NTLM
This is the configuration I have:
Postfix 2.1.1 as client.
Cyrus-SASL... (1 Reply)
Hello
I have a shell script, which should send email, if any error occurred. This script is running in Red Hat Linux 4.6, and want to configure postfix so it can relay to an Exchange Server.
The Authorization method of Exchange server, I guess is: 250-AUTH NTLM. So I have:
Server A ( Red... (1 Reply)
I have a mailserver with postfix
i want to alias all mail for administrator@domain.fqdn
to root@domain.fqdn
I have the aliases configured,and i did newliases
but doesn't work.
How to did this?Postfix is configured for virtual domain on ad server. (2 Replies)
Discussion started by: Linusolaradm1
2 Replies
LEARN ABOUT DEBIAN
postfix::parse::mailq
Postfix::Parse::Mailq(3pm) User Contributed Perl Documentation Postfix::Parse::Mailq(3pm)NAME
Postfix::Parse::Mailq - parse the output of the postfix mailq command
VERSION
version 1.001
SYNOPSIS
use Postfix::Parse::Mailq;
my $mailq_output = `mailq`;
my $entries = Postfix::Parse::Mailq->read_string($mailq_output);
my $bytes = 0;
for my $entry (@$entries) {
next unless grep { /@aol.com$/ } @{ $entry->{remaining_rcpts} };
$bytes += $entry->{size};
}
print "$bytes bytes remain to send to AOL destinations
";
WARNING
This code is really rough and the interface will change. Entries will be objects. There will be some more methods. Still, the basics are
likely to keep working, or keep pretty close to what you see here now.
METHODS
read_file
read_handle
read_string
my $entries = Postfix::Parse::Mailq->read_string($string, \%arg);
This methods read the output of postfix's mailq from a file (by name), a filehandle, or a string, respectively. They return an arrayref of
hashrefs, each hashref representing one entry in the queue as reported by mailq.
Valid arguments are:
spool - a hashref of { queue_id -> spool_name } pairs
if given, this will be used to attempt to indicate in which
spool messages currently are; it is not entirely reliable (race!)
parse_block
my $entry = Mailq->parse_block(@lines);
Given all the lines in a single entry's block of lines in mailq output, this returns data about the entry.
AUTHOR
Ricardo SIGNES <rjbs@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2008 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as perl itself.
perl v5.10.1 2008-10-23 Postfix::Parse::Mailq(3pm)