sendmail woes, anyone skilled with it?

Platypus

Lifer
Apr 26, 2001
31,046
321
136
I have a BSD box and a Solaris 10 box and one gentoo box that need to use sendmail between them (before you ask why sendmail, it's required and I know how badly it sucks ass). The gentoo box can send to everyone and everyone is happy; however the gentoo box cannot receive from anyone. The logs all show the mail being delivered, but I don't know where it can possibly be. Is there a way to configure it to go where it should so I can actually receive mail?

Here is my sendmail.mc:

divert(-1)
divert(0)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail-procmail.mc,v 1.2 2004/12/07 01:59:31 g2boojum Exp $')$
OSTYPE(linux)dnl
DOMAIN(generic)dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`local_lmtp',`/usr/sbin/mail.local')dnl
FEATURE(`local_procmail')dnl
MAILER(local)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
#DAEMON_OPTIONS('Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

Edits: If I send email to myself from the gentoo box, it ends up in ~.maildir/new
If I send it from the BSD or solaris box, it is not found there.
 

Platypus

Lifer
Apr 26, 2001
31,046
321
136
Here is one interesting bit, this is from the BSD box where I sent the mail.
(Note I changed the hostnames..)

Jan 20 22:31:40 t6bsd sendmail[1741]: j0L3VeQN001739: to=<platypus@t6linux>, ctladdr=<root@t6bsd.edited.out> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30258, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (j0L3Veu4001742 Message accepted for delivery)

Jan 20 22:32:40 t6bsd sm-mta[1744]: j0L3Veu4001742: to=<platypus@t6linux.edited.out>, ctladdr=<root@t6bsd.edited.out> (0/0), delay=00:01:00, xdelay=00:01:00, mailer=esmtp, pri=30495, relay=t6linux.edited.out., dsn=4.0.0, stat=Deferred: Name server: t6linux.edited.out.: host name lookup failure

Interesting part.. nslookup works on both of the hostnames perfectly?
 

Platypus

Lifer
Apr 26, 2001
31,046
321
136
The problem now is not with gentoo, but BSD's mta not actually sending it. The hostnames are all perfect... any thoughts? I know sendmail is cranky about hostnames.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Which BSD? You said an nslookup works just fine? Can the BSD box send email to any of the systems? What about locally?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
(before you ask why sendmail, it's required and I know how badly it sucks ass).

Sendmail doesn't suck, infact it runs the majority of the Internet's SMTP infrastructure, it's just that most people don't like dealing with the macro language because it's hard to read.

Edits: If I send email to myself from the gentoo box, it ends up in ~.maildir/new

The gentoo people must have 3rd party patches because AFAIK sendmail doesn't do maildir natively. Well or you could be using procmail or something to put it there.

If I send it from the BSD or solaris box, it is not found there.

It shouldn't be there unless you tell it go there. By default it should be delivered to /var/spool/mail/<username>

The problem now is not with gentoo, but BSD's mta not actually sending it. The hostnames are all perfect... any thoughts? I know sendmail is cranky about hostnames.

You're sending mail to username@hostname.domain? I've never had a problem with that when I used sendmail, it's one of the things it does out of the box.
 

Platypus

Lifer
Apr 26, 2001
31,046
321
136
Originally posted by: Nothinman
(before you ask why sendmail, it's required and I know how badly it sucks ass).

Sendmail doesn't suck, infact it runs the majority of the Internet's SMTP infrastructure, it's just that most people don't like dealing with the macro language because it's hard to read.

Edits: If I send email to myself from the gentoo box, it ends up in ~.maildir/new

The gentoo people must have 3rd party patches because AFAIK sendmail doesn't do maildir natively. Well or you could be using procmail or something to put it there.

If I send it from the BSD or solaris box, it is not found there.

It shouldn't be there unless you tell it go there. By default it should be delivered to /var/spool/mail/<username>

The problem now is not with gentoo, but BSD's mta not actually sending it. The hostnames are all perfect... any thoughts? I know sendmail is cranky about hostnames.

You're sending mail to username@hostname.domain? I've never had a problem with that when I used sendmail, it's one of the things it does out of the box.


You can ignore everything except the last thing you quoted, for some reason the BSD MTA says it's ready to send, but then it gets a hostname lookup error and never sends it.