Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] virtusertable sendmail fowarding issues
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
longship
Apprentice
Apprentice


Joined: 04 Jun 2005
Posts: 294
Location: Ontario, CA USA

PostPosted: Mon Feb 27, 2006 10:04 pm    Post subject: [Solved] virtusertable sendmail fowarding issues Reply with quote

I have three boxes which receive e-mail.

1. Mail server -- achilles
2. Workstation A -- turing
3. Workstation B -- magritte

I have set up virtusertable on achilles to forward mail to the proper machines via smtp.

Both turing and magritte are running identical sendmail.cf.

magritte is my new workstation. Formerly my stuff was on achilles. It's still there, but I am attempting to change all my e-mail, etc to magritte

I have a DNS server with appropriate MX record pointing to my static IP, which happens to be directed to my router, bach. bach forwards port 25 to achilles so that he may handle e-mail.

Here's the problem.

Mail goes to and from turing without any issues.
However, when I forwarded my e-mail address to magritte via virtusertable all my mail began having problems. The error I receive from achilles:
Code:
 localhost sm-mta[21911]: k1RLjkoo021906: to=<myuser@domain.org>,  delay=00:00:05,  xdelay=00:00:00, mailer=esmtp, pri=122968, relay=magritte.domain.org. [192.168.1.9], dsn=5.3.5, stat=Local configuration error


The error I receive from magritte is:
Code:
magritte sm-mta[3064]: k1RLkCYf003064: achilles.longship.net [19
2.168.1.2] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA


The e-mail gets bounced and finds its way over to my old account on achillles by way of myname@achilles being aliased to root@achilles.

There are logins for my wife on both achilles and turing with the same user name. Just as there are accounts on achilles and magritte for me.

Yet apparently turing is handling things properly and magritte is not.

Both have the same sendmail.mc:
Code:
divert(-1)
divert(0)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc,v 1.2 2004/12/07 01:59:31 g2boojum Exp $')dnl
OSTYPE(linux)dnl
DOMAIN(generic)dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`local_procmail')dnl
FEATURE(masquerade_entire_domain)dnl
FEATURE(masquerade_envelope)dnl
FEATURE(`always_add_domain')dnl
Cwmydomain.org
FEATURE(`nouucp', `reject')dnl

MAILER(local)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl

LOCAL_CONFIG
MASQUERADE_AS(mydomain.org)dnl


Here's achilles sendmail.mc:
Code:
define(`_USE_ETC_MAIL_')dnl
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
VERSIONID(`@(#)sendmail.mc      8.9.3-21 (Debian) 20000309')
OSTYPE(`debian')dnl
DOMAIN(`debian-mta')dnl
dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
undefine(`confHOST_STATUS_DIRECTORY')dnl                #DAEMON_HOSTSTATS
dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
FEATURE(local_procmail)dnl
FEATURE(access_db)dnl
FEATURE(virtusertable)dnl
FEATURE(nocanonify)dnl
FEATURE(masquerade_entire_domain)dnl
FEATURE(masquerade_envelope)dnl
FEATURE(`always_add_domain')dnl
Cwmydomain.org
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(`nouucp', `reject')dnl


MAILER_DEFINITIONS
MAILER(smtp)dnl
MAILER(local)dnl
MAILER(procmail)dnl

LOCAL_CONFIG
MASQUERADE_AS(mydomain.org)dnl
## Custom configurations below (will be preserved)
define(`confSMTP_LOGIN_MSG',`')dnl
define(`HELP_FILE',`')dnl
INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/sendmail/spamass.sock, F=, T=C:15m;S:4m;R:4m;E:10m')dnl
define(`confMILTER_MACROS_CONNECT',`b, j, _, {daemon_name}, {if_name}, {if_addr}')dnl


My /etc/procmailrc on turing and magritte:
Code:
DEFAULT=/var/spool/mail/$LOGNAME


I've never had problems with this stuff before. It should just work.

my virtusertable entries look like this:
Code:

wife@mydomain.org      wife@turing
myname@mydomain.org  myname@magritte
...


Here's what the bouncing messages are saying when they find their way to "myname@achilles" (via root@achilles):
Code:

553 5.3.5 magritte.mydomain.org. config error: mail loops back to me (MX problem?)
554 5.3.5 Local configuration error


There are logins for "wife" and "myname" on both achilles and their respective workstations, turing and magritte respectively.

Something's screwy here. What works for my wife's e-mail doesn't work for mine.

Both turing and magritte are running Gentoo Linux 2.6.15-r1 with the same version of sendmail.

[Q]What is different between the two workstations that is causing this?
_________________
AMD 64 X2 4400+, ASUS A8N-Sli Premium + Lian Li PC-V1000A Plus
AMD Duron 800, ABit KT7E, junk case
VIA C3-Nehemiah, VIA EPIA MII12000 + Scythe e-Otonashi fanless case


Last edited by longship on Tue Feb 28, 2006 3:03 am; edited 1 time in total
Back to top
View user's profile Send private message
longship
Apprentice
Apprentice


Joined: 04 Jun 2005
Posts: 294
Location: Ontario, CA USA

PostPosted: Mon Feb 27, 2006 11:03 pm    Post subject: Reply with quote

BTW

Code:
# ls -l /var/spool

drwxrwx---  2 smmsp smmsp 4096 Feb 27 14:54 clientmqueue/
drwxr-x---  4 root  cron  4096 Jan 31 22:52 cron/
drwx--x---  3 root  lp    4096 Feb  1 01:19 cups/
drwxrwxrwt  2 root  mail  4096 Feb 27 14:57 mail/
drwx------  2 root  root  4096 Feb 27 11:02 mqueue/

# ls -l /var/spool/mail

-rw-rw----  1 myname mail 0 Feb 27 14:57 myname
-rw-rw----  1 root     mail 0 Feb 27 11:16 root

_________________
AMD 64 X2 4400+, ASUS A8N-Sli Premium + Lian Li PC-V1000A Plus
AMD Duron 800, ABit KT7E, junk case
VIA C3-Nehemiah, VIA EPIA MII12000 + Scythe e-Otonashi fanless case
Back to top
View user's profile Send private message
longship
Apprentice
Apprentice


Joined: 04 Jun 2005
Posts: 294
Location: Ontario, CA USA

PostPosted: Tue Feb 28, 2006 3:01 am    Post subject: Reply with quote

This problem was very weird.

Since I was using a known good sendmail configuration, the problem had to be something to do with routing of e-mail. I happened to type in:

Code:
# hostname -v

gethostname()='i'
i


Something's damned weird here. Hostname is magritte

Rebooted the computer (WinBlows anybody?).

When it came up, hostname correctly emitted magritte. I redirected my e-mails via /etc/mail/virtusertable on []b]achilles[/b] and sent an e-mail from turing. Bingo! it popped up immediately on magritte.

Now, the question remains.

[Q] What hosed my hostname? That sounds like kernel land to me.

...and who stole the kishka?
_________________
AMD 64 X2 4400+, ASUS A8N-Sli Premium + Lian Li PC-V1000A Plus
AMD Duron 800, ABit KT7E, junk case
VIA C3-Nehemiah, VIA EPIA MII12000 + Scythe e-Otonashi fanless case
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum