LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices

Reply
 
Search this Thread
Old 04-24-2013, 01:44 PM   #1
chingupt
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Rep: Reputation: Disabled
mail received at sendmail has relay=localhost [[UNIX: localhost]] check_rcpt fails


I have setup my local sendmail as a Smart Host and trying to relay all incoming mails to a mail server.

However, whenever i try to send a mail to an internet mail address, getting the following error:

ruleset=check_rcpt, arg1=<chingupt1@gmail.com>, relay=localhost [[UNIX: localhost]], reject=550 5.7.1 <chingupt1@gmail.com>... Relaying denied

I debugged the sendmail configuration file and found that this rule fails as its receiving the client_addr as localhost and client_resolve is resolving to NULL. and client_name is getting set to client_name which it tries to resolve into some hostname.

My hostname is a.b.c
its converting it to localhost.b.c

Logs of check_rcpt:

Relay_ok input: < email1 @ gmail . com >
rewrite: RHS $&{client_addr} => "localhost"
rewritten as: localhost
rewritten as: [ localhost ]
rewrite: RHS $&{client_resolve} => "(NULL)"
rewritten as: < >
rewrite: RHS $&{client_name} => "localhost"
rewritten as: < @ > localhost
rewritten as: < ? > localhost . b . c
rewritten as: < ? > localhost . b . c
Relay_ok returns: < ? > localhost . b . c
rewritten as: O $| < ? > localhost . b . c
rewritten as: $# error $@ 5 . 7 . 1 $: "550 Relaying denied"
Basic_check_rcpt returns: $# error $@ 5 . 7 . 1 $: "550 Relaying denied"
rewritten as: $# error $@ 5 . 7 . 1 $: "550 Relaying denied"
check_rcpt returns: $# error $@ 5 . 7 . 1 $: "550 Relaying denied"

In sendmail.cf file, i have set the SMART_HOST to my mail server, yet its getting set to localhost.

Can anyone please provide some pointers on how to resolve this issue?
 
Old 04-25-2013, 03:28 AM   #2
heinblöd
Member
 
Registered: May 2004
Location: France
Distribution: Slackware Gentoo
Posts: 185

Rep: Reputation: 31
Well I only know postfix, but if you try to relay mail for a gmail address, shouldn't the SMART HOST be gmail.com in this case, logically ?
 
Old 04-25-2013, 04:47 AM   #3
chingupt
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Not sure i get you properly. I need to send all my outbound mails to a central server where some scanning will take place. Hence i have set my SMART HOST as the central server .
 
Old 04-25-2013, 05:36 PM   #4
heinblöd
Member
 
Registered: May 2004
Location: France
Distribution: Slackware Gentoo
Posts: 185

Rep: Reputation: 31
Yes but if I understand the doc rigth, the SMART HOST is not your mailserver, but the mailserver your MTA will use to send outgoing mail, instead of sending it directly.
I understood that this is the same as the 'relayhost' parameter in postfix.

Look at this, they use it in the way I would use it :

http://www.dnsexit.com/support/mailrelay/sendmail.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make Sendmail forward all incoming mail to localhost port 26 (Domino mail) speedgelb Linux - Software 3 09-27-2013 10:18 AM
Sending mail from localhost with sendmail SMTP authentication nim401 Linux - Software 1 05-21-2012 08:37 AM
Mail from root@localhost.localdomain thru relay=localhost.localdomain[216.24.138.1] rshartog Linux - Server 2 02-02-2009 10:35 PM
sendmail server just sends mail from localhost reneve59 Linux - Server 3 09-21-2007 09:32 PM
Sendmail- RH8.0- Looking for relay on localhost.com rawbear Linux - Software 21 04-26-2003 10:35 PM


All times are GMT -5. The time now is 09:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration