LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-30-2010, 02:21 AM   #1
techikarthi
LQ Newbie
 
Registered: Jun 2010
Posts: 2

Rep: Reputation: 0
sendmail


Hi all,

Problem in sendmail.For the past two days im working on it.I have reviewed many forums helps,suggestions.

The problem is . I need to send an email from command line as mail -v abv@gmail.com

I have installed sendmail and sendmail-cf.
I have done the basic configuration

in /etc/mail/sendmail.mc ( commented the line DAEMON_OPTIONS )
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
service sendmail restart

Then i tried mail -v abv@gmail.com
yes i got email.
nmap localhost

25 smtp port
telnet localhost 25
yes i got connected

THE PROBLEM is :
I need to configure sendmail port as 2025 instead of 25

First I configured port as 2025 in /etc/mail/sendmail.mc
DAEMON_OPTIONS port=2025 (instead of smtp)

m4 sendmail.mc > sendmail.cf
service sendmail restart

I tried to sendmail
Connecting to [127.0.0.1] via relay...
abv@gmail.com... Deferred: Connection refused by [127.0.0.1]

I tried one more change adding up the following line in sendmail.mc
define(`RELAY_MAILER_ARGS', `TCP $h 2025')
define(`ESMTP_MAILER_ARGS', `TCP $h 2025')

m4 sendmail.mc > sendmail.cf
service sendmail restart

The same error ( connection refused )

The third option I tried in the sendmail.cf
Mrelay, P=[IPC], F=mDFMuXa8, S=EnvFromSMTP/HdrFromSMTP, R=MasqSMTP, E=\r\n, L=2040,
T=DNS/RFC822/SMTP,
A=TCP $h 2025

In the last line $h was there.I added 2025 port number

After restarting sendmail I got the same error. Deffered connection error.

I read in a forum to change the smtp 25 to 2025 in /etc/services

After that i did not get the connection refused error.

[root@efycaci21 ~]# mail -v abv@gmail.com
Subject: test
as
as
.
Cc:
abv@gmail.com... Connecting to [127.0.0.1] via relay...
220 test.acme.com ESMTP Sendmail 8.14.2/8.14.2; Wed, 30 Jun 2010 09:29:07 +0530
>>> EHLO test.acme.com
250-test.acme.com Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP
>>> MAIL From:<root@test.acme.com> SIZE=54 AUTH=root@test.acme.com
250 2.1.0 <root@test.acme.com>... Sender ok
>>> RCPT To:<abv@gmail.com>
>>> DATA
250 2.1.5 <abv@gmail.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 o5U3x7aV002568 Message accepted for delivery
abv@gmail.com... Sent (o5U3x7aV002568 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 test.acme.com closing connection

I tried to check the 2025 port number is listening. nmap localhost
PORT STATE SERVICE
111/tcp open rpcbind
2025/tcp open ellpack

Now mail is not getting delivered. It is /var/spool/mqueue
The mails are in queue.

Kindly suggest me what else I need to do

even in /etc/mail/access i have entered my localhost ,127.0.0.0,IP address, as RELAY


Is it possible to change the default port number to customized port number. The reason I wish to change the port number is. I need to run James mail server in the same machine which requires 25 port.
 
Old 06-30-2010, 04:11 AM   #2
mlandvo
LQ Newbie
 
Registered: Jun 2010
Posts: 19

Rep: Reputation: 0
I also have the similar problem, mine is that I can can reach the users in my local machine via command line but I cant seem to use any of the GIU email client (Evolution for example).

pliz help.
 
Old 06-30-2010, 04:17 AM   #3
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
Hey,

Have you tried googling it.

I just googled it, find few good links on the very first page.

http://www.google.com/search?hl=en&&...+linux&spell=1

This seems interesting, please try these links and then get back to this thread.
 
  


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 config questions + Sendmail not reflecting changes to access db wbuik Linux - Networking 2 03-26-2009 05:02 AM
Sendmail ignores aliases with sendmail daemon stopped phavn Solaris / OpenSolaris 1 12-01-2008 02:50 PM
m4 sendmail.mc > sendmail.cf generate unwanted result on OpenSolaris johncsl82 Solaris / OpenSolaris 1 09-08-2008 11:25 PM
sendmail is not working & on $prompt the cmd sendmail hangs Pavan mahoorker Linux - Software 1 04-04-2006 03:57 PM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 11:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:03 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