LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-15-2011, 06:43 PM   #1
adshocker
LQ Newbie
 
Registered: Apr 2008
Posts: 16

Rep: Reputation: 0
How to setup Sendmail as SMTP Relay?


Hi Guys,

I want to setup sendmail using my username and password on my ISP to be able to send out messages.

I'm using Linux. So far, what I've done is modified the sendmail.mc with the following changes:
Code:
define(`SMART_HOST',`mysmtpoutgoingserver')
FEATURE(authinfo)dnl
In my /etc/mail/authinfo, I have the following:
Code:
AuthInfo:mysmtpoutgoingserver "U:myusername@myispdomain" "I:myusername@myispdomain" "P:mypassword" "M:PLAIN"
Now whenever I try sending by executing a simple sendmail command:
Code:
cat sendmail.mc | sendmail "myotheremail@gmail.com"
I always get a Sender Rejected error mail back.
Code:
(reason: 550 5.1.8 <root@mylocaldomain>: Sender address rejected: Domain not found)
This is actually true as the mylocaldomain is not a public Internet domain. Just a localdomain for our local network. However, I was expecting that to change to the username in my authinfo "myusername@myispdomain" since this account is authorized to send out email with my ISP.

Any ideas on how I can do this?

Thanks.
 
Old 05-15-2011, 08:41 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi there,

Well, I don't think so it is possible to do what you are trying.

Here you are trying to use one email account that you have with your ISP to be used to send email address by relaying.

You are using internal email account that you have created on your sendmail server and trying to link it with your email account that you have with your ISP which I think is a sort of relaying and which wouldn't be permitted either by your ISP or by any email server on the internet due to the fact that it can be used to flood the mailserver with such messages.

The only option is to get your domain name registered, get a public IP, configure mx record for your mailserver and do NATing for security.
 
  


Reply



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
Sendmail SMTP relay error but only from some ISPs ThickGit Linux - Server 5 06-06-2009 02:01 AM
Sendmail as a SMTP open relay? silverline27 Linux - Networking 5 01-16-2008 06:03 AM
Sendmail and SMTP relay + Asterisk Equin Linux - Server 0 06-05-2007 04:22 PM
need help in getting sendmail to relay using smtp-auth coolamit78 Linux - Networking 4 01-17-2007 11:20 AM
sendmail to relay smtp to exchange inaki Linux - Software 1 04-02-2006 08:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:52 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration