Muli Ben-Yehuda's journal

June 9, 2004

the postfix bug that isn’t

Filed under: Uncategorized — Muli Ben-Yehuda @ 12:18 PM

I just spent a couple of hours tweaking the postfix installation on my desktop
machine, alhambra. I got everything working to my satisfaction, and
then noticed that bounce messages contain the line “For further
assistance, please send mail to “. The bit
looks incorrect, since I would expect it to be a real email
address. I looked in HOWTOs, read the configuration files, searched
the web, and couldn’t find any way to tell postfix which address to
use. Eventually, I downloaded the source and verified that indeed
there is no way to set this particular string. In
src/bounce/bounce_notify_util.c, we have the line

	post_mail_fprintf(bounce,
			  "For further assistance, please send mail to ",
			  MAIL_ADDR_POSTMASTER);

where MAIL_ADDR_POSTMASTER is defined in src/global/mail_addr.h as

#define MAIL_ADDR_POSTMASTER	"postmaster"
#define MAIL_ADDR_MAIL_DAEMON	"MAILER-DAEMON"
#define MAIL_ADDR_EMPTY		""

extern const char *mail_addr_double_bounce(void);
extern const char *mail_addr_postmaster(void);

Hmm, thinks I, perhaps MAIL_ADDR_POSTMASTER is a default and
mail_addr_postmaster() does the fully qualified domain name bit? let’s
see. src/global/mail_addr.c:

const char *mail_addr_postmaster(void)
{
    static char *addr;

    if (addr == 0)
	addr = concatenate(MAIL_ADDR_POSTMASTER, "@",
			   var_myhostname, (char *) 0);
    return (addr);
}

Couldn’t be much clearer than that. Looks like someone used
MAIL_ADDR_POSTMASTER rather than mail_addr_postmaster(). Not the sort
of silly bug I’d expect in postfix, but stranger things have
happened. Cool, a bug I can report and fix.

Well, let’s see where to report bugs in postfix. Nothing in the
source, no -devel mailing list. Maybe I should report it against the
debian package? Hmm, maybe one of the FAQs will have more information
on it? let’s try this one?. While
browsing through it, what do I see? When Postfix
sends a bounce message, it tells the sender, “For further assistance,
please send mail to…
, which states:

 
4. When Postfix sends a bounce message, it tells the sender, "For
   further assistance, please send mail to 'postmaster'" But I want it
   to include my domain name in the address,
   e.g. . How can I do that? 

The idea behind this is that people who receive this notification
should contact their own local postmasters, since they may very well
be the ones who have to deal with the problem. If you really want to
change it, you have to modify the source code.  

To which I have only one thing to say: D’oh!

June 8, 2004

PNS day 30 – what would a SEAL do?

Filed under: Uncategorized — Muli Ben-Yehuda @ 6:41 PM

Weight continues dropping, and I’m breaking new grounds. May the trend continue unabated!

This morning I went to the pool and swam my customary 1 kilometer. I was very close to quitting at the 500 meters mark and at the 750 meters mark. Each time, I asked myself what a SEAL would do, and just kept going. As the gym-master says, exercising is half muscles and three quarters will power.

My reward for the swim is aching all over, and a small measure of satisfaction at not quitting. I’ll take the latter even with the former any day.

Tomorrow the plan is weights in the morning, and likewise on Thursday. I’m thinking tennis on Saturday will be swell… now I just need to find a partner-in-crime.

Aviram Jenik talk on “Application level attacks: Security holes are YOUR fault”

Filed under: Uncategorized — Muli Ben-Yehuda @ 6:35 PM

Aviram Jenik of BeyondSecurity gave a most entertaining talk this morning at HRL. Hearing Aviram talk is always a pleasure, and this morning was no different.

the story of a (page) fault

Filed under: Uncategorized — Muli Ben-Yehuda @ 6:15 PM

I just added some tracing code to arch/i386/mm/fault.c:do_page_fault() and it worked on the first try. I love it when that happens!

I’m trying to figure out why a user space program that accesses the area where the kernel is supposedly mapped (above PAGE_OFFSET,
e.g. 0xC0000004) gets killed. I know (vis-a-vis the tracing code
mentioned above) that it gets a page fault, sees that it’s above PAGE_OFFSET and a user space fault, and then sends a SIGSEGV. What I am not absolutely convinced about is why the fault happens in the first place. The options are that it gets a fault because the kernel is mapped, but the protection on the ptes is such that only code running in ring 0 (i.e. the kernel) can access them, or that the kernel is not mapped while we are running in user space, and is only mapped in when we context switch to kernel space. The former makes a lot more sense, but I haven’t yet hunted down the code that does it.

This question came up in the context of our reading group at work that is reading Mel Gorman’s Understanding the Linux VM book. The books is not great for our needs (too many details, not enough overview and concepts), but provides great context for the discussions.

June 7, 2004

PNS day 29 – Ouchuga wooga!

Filed under: Uncategorized — Muli Ben-Yehuda @ 11:15 AM

Mysterious are the ways of my metabolism. After the weekend’s pizza flavored disaster, I hit the scales this morning and see that I’m back to my lowest-ever weight since starting PNS training. Woohoo!

Good workout this morning, the kind I end up drenched in sweat afterward. 30 minutes on the cross trainer, some weights (lever chest press and lever front pulldown), and then abs.

The trainer guy in the gym, who’s very experienced and obviously knows what he’s talking about, to judge by his bulging muscles, told me to concentrate on muscle stamina (20 reps at least in each set) rather than strength. I think I’ll do stamina reps on legs, back and shoulders, and strength or stamina and then strength on pushups and pullups.

Tomorrow morning I hit the pool. Looking forward to it.

Oh, and shapirac, I finished my Vorkosigan book last night and am now reading Heinlein’s Starship Troopers again. I’ll take motivation any damned place I can find it!

June 6, 2004

PNS day 28 – recuperating from the weekend’s disaster

Filed under: Uncategorized — Muli Ben-Yehuda @ 12:01 PM

I ate a pizza yesterday. I’m paying back for it now.

In fact, the entire weekend was a PNS-disaster. I did not have the will power to work out, and instead veggied around at home.

This morning’s work out was damned good, although I had to cut it short due to an early morning meeting. I’ll pay my dues in the evening with a set of abs workout.

The plan for the rest of the week is gym tomorrow, pool on Tuesday morning, gym on Wed. and Thu., gym and pool on Friday, and pool on Saturday. I must get out of the house on weekends, regardless of how much I want to stay in.

June 4, 2004

Orna’s graduation

Filed under: Uncategorized — Muli Ben-Yehuda @ 5:31 PM

Yesterday, Orna
had her MSc
graduation ceremony in the Technion
. Being there with her and
seeing her receive her diploma filled my heart with pride.

the narrator
Orna and a friend
the diploma

I hope one day she’ll be able to say the same about me.

June 2, 2004

Back on the horse – PNS day 25

Filed under: Uncategorized — Muli Ben-Yehuda @ 10:56 AM

Weight is looking good this morning, and the morning workout went very well. I skipped the leg exercises due to the gym closing at 10AM, but did 30 minutes on the cross trainer and upper body & abs workout. Finished completely drenched. Yay for good workouts!

Tomorrow morning the plan is to hit the pool, and then the usual micro-suffering-is-good-for-you triple exercise on Friday morning.

Richard Cory by Edwin Arlington Robinson

Filed under: Uncategorized — Muli Ben-Yehuda @ 10:49 AM
Whenever Richard Cory went down town,
We people on the pavement looked at him:
He was a gentleman from sole to crown
Clean favored, and imperially slim.

And he was always quietly arrayed,
And he was always human when he talked;
But still he fluttered pulses when he said,
"Good-morning," and he glittered when he walked.

And he was rich - yes, richer than a king -
And admirably schooled in every grace;
In fine we thought that he was everything
To make us wish that we were in his place.

So on we worked, and waited for the light,
And went without the meat, and cursed the bread;
And Richard Cory, one calm summer night,
Went home and put a bullet through his head.

(via Uri
Schonfeld
).

June 1, 2004

He’s Baaaack – PNS day 24

Filed under: Uncategorized — Muli Ben-Yehuda @ 10:48 PM

Good workout today, the first in nine days (I suck). Goal for this week is go back to my weight before the disastrous (in relative terms) last week.

« Previous PageNext Page »

Blog at WordPress.com.