sendmail not using mailertableSending mail using sendmailsendmail using incorrect timezoneForward Only Email...
Are Boeing 737-800’s grounded?
Need help understanding harmonic series and intervals
Binary Numbers Magic Trick
In the time of the mishna, were there Jewish cities without courts?
Help, my Death Star suffers from Kessler syndrome!
Python "triplet" dictionary?
Subtleties of choosing the sequence of tenses in Russian
When to use 1/Ka vs Kb
Did Henry V’s archers at Agincourt fight with no pants / breeches on because of dysentery?
Please, smoke with good manners
What is a Recurrent Neural Network?
How does a Swashbuckler rogue "fight with two weapons while safely darting away"?
Is GOCE a satellite or aircraft?
Can fracking help reduce CO2?
Single Colour Mastermind Problem
"ne paelici suspectaretur" (Tacitus)
What are the spoon bit of a spoon and fork bit of a fork called?
Was it really necessary for the Lunar Module to have 2 stages?
How to stop co-workers from teasing me because I know Russian?
Why is the origin of “threshold” uncertain?
You look catfish vs You look like a catfish
A non-technological, repeating, visible object in the sky, holding its position in the sky for hours
Why do TACANs not have a symbol for compulsory reporting on IFR Enroute Low Altitude charts?
Multiple options for Pseudonyms
sendmail not using mailertable
Sending mail using sendmailsendmail using incorrect timezoneForward Only Email Serversendmail not workingSendmail stopped sending mails, “did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA”Using wildcard domains in sendmailHow to output detail message about 5.x.x error on SendmailCan't send mail via sendmailSendmail error dsn=4.0.0 stat=Deferred: Connection refused by [127.0.0.1]Sendmail Has Stopped Working
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I'm having trouble getting my mailertable to work....
/etc/mail/sendmail.mc contains this line
FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl
/etc/mail/mailertable contains this line
domain1.com esmtp:[10.210.5.22]
I ran these to "recompile" the settings...
makemap hash /etc/mail/mailertable.db < /etc/mail/mailertable
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
service sendmail restart
Then tried to send a test
$ mail -s "test email" aaron@domain1.com
$ tail -f /var/log/maillog
May 9 10:03:14 npsetl005 sendmail[27779]: p49E3EG0027777: to=<aaron@www.domain1.com>, ctladdr=<root@npsetl005.domain.domain1.pri> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120350, relay=www.domain1.com. [172.16.1.47], dsn=4.0.0, stat=Deferred: Connection refused by www.domain1.com.
Contents of the mailertable.db file
root@npsetl005:/etc/mail$ strings mailertable.db
esmtp:[10.210.5.22]
domain1.com
We have this stupid problem on our internal network where DNS and MX records aren't really set up 100 percent correctly. Getting permission to change it, and test it are way beyond the scope of this question; So I just want sendmail to ignore what's in DNS and fire messages straight to our internal relay server (which works for dozens of other clients) - but it's not doing that. You can see that it's rewriting the addresses to user@www.domain1.com because the parent *.domain1.com is a cname to www.domain1.com (someone did this as a poor mans redirect. So if a user tries to go to a subdomain that doesn't exist, they go to the root website instead... I know. I know.)
What did I miss?
sendmail
bumped to the homepage by Community♦ 32 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I'm having trouble getting my mailertable to work....
/etc/mail/sendmail.mc contains this line
FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl
/etc/mail/mailertable contains this line
domain1.com esmtp:[10.210.5.22]
I ran these to "recompile" the settings...
makemap hash /etc/mail/mailertable.db < /etc/mail/mailertable
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
service sendmail restart
Then tried to send a test
$ mail -s "test email" aaron@domain1.com
$ tail -f /var/log/maillog
May 9 10:03:14 npsetl005 sendmail[27779]: p49E3EG0027777: to=<aaron@www.domain1.com>, ctladdr=<root@npsetl005.domain.domain1.pri> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120350, relay=www.domain1.com. [172.16.1.47], dsn=4.0.0, stat=Deferred: Connection refused by www.domain1.com.
Contents of the mailertable.db file
root@npsetl005:/etc/mail$ strings mailertable.db
esmtp:[10.210.5.22]
domain1.com
We have this stupid problem on our internal network where DNS and MX records aren't really set up 100 percent correctly. Getting permission to change it, and test it are way beyond the scope of this question; So I just want sendmail to ignore what's in DNS and fire messages straight to our internal relay server (which works for dozens of other clients) - but it's not doing that. You can see that it's rewriting the addresses to user@www.domain1.com because the parent *.domain1.com is a cname to www.domain1.com (someone did this as a poor mans redirect. So if a user tries to go to a subdomain that doesn't exist, they go to the root website instead... I know. I know.)
What did I miss?
sendmail
bumped to the homepage by Community♦ 32 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
If you want to send mail unconditionally to the relay, useSMART_HOST
to ship it there.
– vonbrand
Mar 4 '14 at 17:46
add a comment |
I'm having trouble getting my mailertable to work....
/etc/mail/sendmail.mc contains this line
FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl
/etc/mail/mailertable contains this line
domain1.com esmtp:[10.210.5.22]
I ran these to "recompile" the settings...
makemap hash /etc/mail/mailertable.db < /etc/mail/mailertable
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
service sendmail restart
Then tried to send a test
$ mail -s "test email" aaron@domain1.com
$ tail -f /var/log/maillog
May 9 10:03:14 npsetl005 sendmail[27779]: p49E3EG0027777: to=<aaron@www.domain1.com>, ctladdr=<root@npsetl005.domain.domain1.pri> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120350, relay=www.domain1.com. [172.16.1.47], dsn=4.0.0, stat=Deferred: Connection refused by www.domain1.com.
Contents of the mailertable.db file
root@npsetl005:/etc/mail$ strings mailertable.db
esmtp:[10.210.5.22]
domain1.com
We have this stupid problem on our internal network where DNS and MX records aren't really set up 100 percent correctly. Getting permission to change it, and test it are way beyond the scope of this question; So I just want sendmail to ignore what's in DNS and fire messages straight to our internal relay server (which works for dozens of other clients) - but it's not doing that. You can see that it's rewriting the addresses to user@www.domain1.com because the parent *.domain1.com is a cname to www.domain1.com (someone did this as a poor mans redirect. So if a user tries to go to a subdomain that doesn't exist, they go to the root website instead... I know. I know.)
What did I miss?
sendmail
I'm having trouble getting my mailertable to work....
/etc/mail/sendmail.mc contains this line
FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl
/etc/mail/mailertable contains this line
domain1.com esmtp:[10.210.5.22]
I ran these to "recompile" the settings...
makemap hash /etc/mail/mailertable.db < /etc/mail/mailertable
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
service sendmail restart
Then tried to send a test
$ mail -s "test email" aaron@domain1.com
$ tail -f /var/log/maillog
May 9 10:03:14 npsetl005 sendmail[27779]: p49E3EG0027777: to=<aaron@www.domain1.com>, ctladdr=<root@npsetl005.domain.domain1.pri> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120350, relay=www.domain1.com. [172.16.1.47], dsn=4.0.0, stat=Deferred: Connection refused by www.domain1.com.
Contents of the mailertable.db file
root@npsetl005:/etc/mail$ strings mailertable.db
esmtp:[10.210.5.22]
domain1.com
We have this stupid problem on our internal network where DNS and MX records aren't really set up 100 percent correctly. Getting permission to change it, and test it are way beyond the scope of this question; So I just want sendmail to ignore what's in DNS and fire messages straight to our internal relay server (which works for dozens of other clients) - but it's not doing that. You can see that it's rewriting the addresses to user@www.domain1.com because the parent *.domain1.com is a cname to www.domain1.com (someone did this as a poor mans redirect. So if a user tries to go to a subdomain that doesn't exist, they go to the root website instead... I know. I know.)
What did I miss?
sendmail
sendmail
edited May 9 '11 at 14:47
LVLAaron
asked May 9 '11 at 14:17
LVLAaronLVLAaron
79052029
79052029
bumped to the homepage by Community♦ 32 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 32 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
If you want to send mail unconditionally to the relay, useSMART_HOST
to ship it there.
– vonbrand
Mar 4 '14 at 17:46
add a comment |
If you want to send mail unconditionally to the relay, useSMART_HOST
to ship it there.
– vonbrand
Mar 4 '14 at 17:46
If you want to send mail unconditionally to the relay, use
SMART_HOST
to ship it there.– vonbrand
Mar 4 '14 at 17:46
If you want to send mail unconditionally to the relay, use
SMART_HOST
to ship it there.– vonbrand
Mar 4 '14 at 17:46
add a comment |
2 Answers
2
active
oldest
votes
You don't mention your sendmail version. Sendmail broke... I'm sorry, changed the way mailertable works, with version 8.14. I've had all my mail hubs break when upgrading to RHEL6 with sendmail-8.14. I'm still trying to understand exactly what they change is, and why they changed it. But I've picked up two tips so far:
1) If you want to use virtusertable, and also use mailertable on the RHS of the virtusertable entries, the LHS needs to be in the new VirtHost class. There are VIRTUSER_DOMAIN_FILE and VIRTUSER_DOMAIN macros to help with this.
2) If a LHS domain appears in local-hosts-names, mailertable will never be used.
I'm not sure how accurate these are, but there is so little info on this drastic and undocumented change, that maybe this will help someone in my position.
add a comment |
You have send to aaron@domain1.com
but sendmail rewrites it to aaron@www.domain1.com
. The mailertable entry does not cover subdomains.
Quick Fix:
Add mailertable entry for www.domain1.com
.
Do you use CNAME record for domain1.com?
Sendmail rewrites CNAME (DNS alias) to its "true" name.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f12888%2fsendmail-not-using-mailertable%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You don't mention your sendmail version. Sendmail broke... I'm sorry, changed the way mailertable works, with version 8.14. I've had all my mail hubs break when upgrading to RHEL6 with sendmail-8.14. I'm still trying to understand exactly what they change is, and why they changed it. But I've picked up two tips so far:
1) If you want to use virtusertable, and also use mailertable on the RHS of the virtusertable entries, the LHS needs to be in the new VirtHost class. There are VIRTUSER_DOMAIN_FILE and VIRTUSER_DOMAIN macros to help with this.
2) If a LHS domain appears in local-hosts-names, mailertable will never be used.
I'm not sure how accurate these are, but there is so little info on this drastic and undocumented change, that maybe this will help someone in my position.
add a comment |
You don't mention your sendmail version. Sendmail broke... I'm sorry, changed the way mailertable works, with version 8.14. I've had all my mail hubs break when upgrading to RHEL6 with sendmail-8.14. I'm still trying to understand exactly what they change is, and why they changed it. But I've picked up two tips so far:
1) If you want to use virtusertable, and also use mailertable on the RHS of the virtusertable entries, the LHS needs to be in the new VirtHost class. There are VIRTUSER_DOMAIN_FILE and VIRTUSER_DOMAIN macros to help with this.
2) If a LHS domain appears in local-hosts-names, mailertable will never be used.
I'm not sure how accurate these are, but there is so little info on this drastic and undocumented change, that maybe this will help someone in my position.
add a comment |
You don't mention your sendmail version. Sendmail broke... I'm sorry, changed the way mailertable works, with version 8.14. I've had all my mail hubs break when upgrading to RHEL6 with sendmail-8.14. I'm still trying to understand exactly what they change is, and why they changed it. But I've picked up two tips so far:
1) If you want to use virtusertable, and also use mailertable on the RHS of the virtusertable entries, the LHS needs to be in the new VirtHost class. There are VIRTUSER_DOMAIN_FILE and VIRTUSER_DOMAIN macros to help with this.
2) If a LHS domain appears in local-hosts-names, mailertable will never be used.
I'm not sure how accurate these are, but there is so little info on this drastic and undocumented change, that maybe this will help someone in my position.
You don't mention your sendmail version. Sendmail broke... I'm sorry, changed the way mailertable works, with version 8.14. I've had all my mail hubs break when upgrading to RHEL6 with sendmail-8.14. I'm still trying to understand exactly what they change is, and why they changed it. But I've picked up two tips so far:
1) If you want to use virtusertable, and also use mailertable on the RHS of the virtusertable entries, the LHS needs to be in the new VirtHost class. There are VIRTUSER_DOMAIN_FILE and VIRTUSER_DOMAIN macros to help with this.
2) If a LHS domain appears in local-hosts-names, mailertable will never be used.
I'm not sure how accurate these are, but there is so little info on this drastic and undocumented change, that maybe this will help someone in my position.
answered Apr 30 '13 at 16:35
Stuart GathmanStuart Gathman
415
415
add a comment |
add a comment |
You have send to aaron@domain1.com
but sendmail rewrites it to aaron@www.domain1.com
. The mailertable entry does not cover subdomains.
Quick Fix:
Add mailertable entry for www.domain1.com
.
Do you use CNAME record for domain1.com?
Sendmail rewrites CNAME (DNS alias) to its "true" name.
add a comment |
You have send to aaron@domain1.com
but sendmail rewrites it to aaron@www.domain1.com
. The mailertable entry does not cover subdomains.
Quick Fix:
Add mailertable entry for www.domain1.com
.
Do you use CNAME record for domain1.com?
Sendmail rewrites CNAME (DNS alias) to its "true" name.
add a comment |
You have send to aaron@domain1.com
but sendmail rewrites it to aaron@www.domain1.com
. The mailertable entry does not cover subdomains.
Quick Fix:
Add mailertable entry for www.domain1.com
.
Do you use CNAME record for domain1.com?
Sendmail rewrites CNAME (DNS alias) to its "true" name.
You have send to aaron@domain1.com
but sendmail rewrites it to aaron@www.domain1.com
. The mailertable entry does not cover subdomains.
Quick Fix:
Add mailertable entry for www.domain1.com
.
Do you use CNAME record for domain1.com?
Sendmail rewrites CNAME (DNS alias) to its "true" name.
answered Jun 6 '14 at 19:16
AnFiAnFi
1,115510
1,115510
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f12888%2fsendmail-not-using-mailertable%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
If you want to send mail unconditionally to the relay, use
SMART_HOST
to ship it there.– vonbrand
Mar 4 '14 at 17:46