The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,603 other followers

Archive for July 5th, 2013

Setting up a PPTP connection on Mac OS X Lion

Posted by jpluimers on 2013/07/05

Easy, but worth viewing the screenshots: IPredator – Setting up a PPTP connection on Mac OS X Lion.

Although: I should follow Don’t use PPTP, and don’t use IPSEC-PSK either (via: CloudCracker blog)

–jeroen

Posted in Apple, IPSec, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, Network-and-equipment, OS X 10.8 Mountain Lion, Power User, PPTP, VPN | Leave a Comment »

a few notes on sendmail and re-trying deferred messages

Posted by jpluimers on 2013/07/05

My sendmail setup is a 2-staged one.
Every once in a while one of the stages stops, and mostly they recover.
Sometimes the second stage doesn’t, which causes a lot of messages in the queue get the deferred status.

Re-trying those deferred messages was a bit of a trial and error case, as my search efforts resulted in a lot of messages telling me what should work, but not what actually works.

First of all, mailq shows you what is stuck in the queue.

snap:~ # mailq
                /var/spool/mqueue (2 requests)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
q9FLFBkD002197    11967 Mon Oct 15 23:15 MAILER-DAEMON
                 (Deferred: Connection timed out with smtp.anbid.com.br.)
                                         <debutvtr1@anbid.com.br>
q7S6oxgS023145     5067 Tue Aug 28 08:50 MAILER-DAEMON
      8BITMIME   (Deferred: Connection timed out with mail.admail.com.ar.)
                                         <trustiest76@admail.com.ar>
                Total requests: 2

You can add some parameters for it to show other queues.

So I have a little mq script that shows all queues:

#!/bin/bash
echo "Outgoing mailq";
sudo mailq;
echo " ";
echo "Submit mailq";
sudo mailq -Ac;
echo " ";
echo "Incoming mailq";
sudo mailq -C/etc/sendmail-rx.cf;

These are the commands I tried to flush the outgoing mailq:

sendmail -v -q
sendmail -v -q -OTimeout.hoststatus=0m
sendmail -v -qR@

Only the last one worked correctly.

–jeroen

Posted in *nix, Linux, Power User | Leave a Comment »

 
%d bloggers like this: