LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Thread Tools
Old 10-30-2009, 12:53 AM   #1
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 232
Thanked: 0
Using Sendmail with Evolution


[Log in to get rid of this advertisement]
I have a problem on which my ISP's SMTP server will not relay my email because I am connecting via satellite and the IP I am using is allocated from the US.

My ISP is here in South Africa and, naturally enough, assumes that anyone using their server from the States is attempting to relay spam.

Is it possible to use Sendmail to get around this?

Evolution has the option to use Sendmail and I was hoping that this might provide a solution.

I have configured Sendmail according to this howto: http://www.fsa-blast.org/Webmin/Send...uring_relaying

but am getting an error: "DATA command failed: Relaying not allowed Sender domain not local."

I have added
Code:
67.209.*.*  RELAY
example.co.za  RELAY
to /etc/mail/access

Code:
root#sendmail -bv **cov@gmail.com
**cov@gmail.com... deliverable: mailer esmtp, host gmail.com., user **cov@gmail.com
So it seems that I can send email, but just not as cov@example.co.za

The debug info from Evolution using 'env CAMEL_VERBOSE_DEBUG=1 evolution' is as follows:

Code:
sending : DATA
POP3_STREAM_LINE(15): '+OK 0 messages:'
Got + response
POP3_STREAM_LINE(END)
POP3_STREAM_LINE(3): '+OK'
Got + response
POP3_STREAM_LINE(END)
POP3_STREAM_WRITE(6):
QUIT

received: 354 Enter message, ending with "." on a line by itself
sending : \r\n.\r\n
POP3_STREAM_LINE(16): '+OK Logging out.'
Got + response

Database succesfully closed 

Database succesfully closed 
received: 530 Relaying not allowed - sender domain not local
CamelException.setv(0x7f08c9a51f20, 2, 'DATA command failed: Relaying not allowed - sender domain not local')
sending : QUIT
received: (null)
CamelException.setv(0x7f08c9a51e00, 2, 'QUIT command failed: Operation now in progress')
Can anyone see what I'm doing wrong?
linuxubuntu cov is offline     Reply With Quote
Old 10-30-2009, 04:07 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 5,036
Thanked: 222
Hi,

I'm not using Webmin, so I cannot tell how it configures sendmail, but reading the howto you've posted I think that you need to add your local IP address in the relay page.
Also you can add
Code:
from:cov@example.co.za RELAY
in /etc/mail/access and see if it helps. Of course you have to rebuild the access database
Code:
makemap hash /etc/mail/access <  /etc/mail/access
If that doesn't work, the sendmail logs (usually /var/log/maillog) could be of help here.

Regards
linuxslackware bathory is offline     Reply With Quote
Old 10-30-2009, 09:47 AM   #3
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 232
Thanked: 0

Original Poster
Quote:
Originally Posted by bathory View Post
Hi,

I'm not using Webmin, so I cannot tell how it configures sendmail, but reading the howto you've posted I think that you need to add your local IP address in the relay page.
Worth a try, but it made no difference.
Quote:
Also you can add
Code:
from:cov@example.co.za RELAY
in /etc/mail/access and see if it helps. Of course you have to rebuild the access database
Code:
makemap hash /etc/mail/access <  /etc/mail/access
Same here.
Quote:
If that doesn't work, the sendmail logs (usually /var/log/maillog) could be of help here.
Regards
/var/log/mail.log reports the following error:
Code:
root@Gimli:/home/dave# cat /var/log/mail.log
Oct 30 15:35:33 Gimli sm-mta[2958]: My unqualified host name (Gimli) unknown; sleeping for retry
Oct 30 15:35:35 Gimli sm-msp-queue[2963]: My unqualified host name (Gimli) unknown; sleeping for retry
Oct 30 15:36:34 Gimli sm-mta[2958]: unable to qualify my own domain name (Gimli) -- using short name
Oct 30 15:36:35 Gimli sm-mta[2965]: starting daemon (8.14.3): SMTP+queueing@00:10:00
Oct 30 15:36:36 Gimli sm-msp-queue[2963]: unable to qualify my own domain name (Gimli) -- using short name
Oct 30 15:40:03 Gimli sm-msp-queue[3550]: My unqualified host name (Gimli) unknown; sleeping for retry
Oct 30 15:41:03 Gimli sm-msp-queue[3550]: unable to qualify my own domain name (Gimli) -- using short name
And this from /var/log/mail.err
Code:
root@Gimli:/home/dave# cat /var/log/mail.err
Oct 30 15:35:33 Gimli sm-mta[2958]: My unqualified host name (Gimli) unknown; sleeping for retry
Oct 30 15:35:35 Gimli sm-msp-queue[2963]: My unqualified host name (Gimli) unknown; sleeping for retry
Oct 30 15:36:34 Gimli sm-mta[2958]: unable to qualify my own domain name (Gimli) -- using short name
Oct 30 15:36:36 Gimli sm-msp-queue[2963]: unable to qualify my own domain name (Gimli) -- using short name
Oct 30 15:40:03 Gimli sm-msp-queue[3550]: My unqualified host name (Gimli) unknown; sleeping for retry
Oct 30 15:41:03 Gimli sm-msp-queue[3550]: unable to qualify my own domain name (Gimli) -- using short name
linuxubuntu cov is offline     Reply With Quote
Old 10-30-2009, 10:19 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 5,036
Thanked: 222
Edit /etc/hosts and add your domain, something like:
x.x.x.x Gimli.example.co.za Gimli
If that doesn't work, you can try to use the Dj option in sendmail.cf to define a domain name
Code:
Dj$w.example.co.za
linuxslackware bathory is offline     Reply With Quote
Old 10-30-2009, 02:53 PM   #5
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 232
Thanked: 0

Original Poster
Quote:
Originally Posted by bathory View Post
Edit /etc/hosts and add your domain, something like:
x.x.x.x Gimli.example.co.za Gimli
No change I'm afraid. Still the same error message
Quote:
If that doesn't work, you can try to use the Dj option in sendmail.cf to define a domain name
Code:
Dj$w.example.co.za
Still the same error message.

Additionally the /var/log/mail.log says the following:

Code:
Oct 30 20:42:01 Gimli sm-msp-queue[11344]: My unqualified host name (Gimli) unknown; sleeping for retry
Oct 30 20:43:01 Gimli sm-msp-queue[11344]: unable to qualify my own domain name (Gimli) -- using short name
linuxubuntu cov is offline     Reply With Quote
Old 10-30-2009, 06:09 PM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 5,036
Thanked: 222
Well, I don't see anything in the logs to indicate a problem with the lack of the sending domain.
Have you try to send email using telnet commands?
linuxslackware bathory is offline     Reply With Quote
Old 10-31-2009, 02:29 AM   #7
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 232
Thanked: 0

Original Poster
Quote:
Originally Posted by bathory View Post
Well, I don't see anything in the logs to indicate a problem with the lack of the sending domain.
Have you try to send email using telnet commands?
Yes. That seems to work.

Code:
dave@Gimli:~ $ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 Gimli.example.co.za ESMTP Sendmail 8.14.3/8.14.3/Debian-6; Sat, 31 Oct 2009 08:16:13 +0200; (No UCE/UBE) logging access from: localhost(OK)-localhost [127.0.0.1]
HELO example.co.za
250 Gimli.example.co.za Hello localhost [127.0.0.1], pleased to meet you
MAIL From: davec@example.co.za
250 2.1.0 davec@example.co.za... Sender ok
RCPT To **cov@gmail.com
501 5.5.2 Syntax error in parameters scanning "To"
RCPT To: **cov@gmail.com
250 2.1.5 **cov@gmail.com... Recipient ok
DATA
354 Enter mail, end with "." on a line by itself
Subject: Test
Testing, 1, 2...
.
250 2.0.0 n9V6GDGg014258 Message accepted for delivery
QUIT
So it would appear tha Evolution is not set up correctly?
linuxubuntu cov is offline     Reply With Quote
Old 10-31-2009, 06:19 PM   #8
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 5,036
Thanked: 222
Yes, I guess you have to configure Evolution to use your mail server as the outgoing mail server.

Regards
linuxslackware bathory is offline     Reply With Quote
Old 11-01-2009, 01:09 AM   #9
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 232
Thanked: 0

Original Poster
That's funny.

I have configured Sendmail as my SMTP Server
Attached Images
File Type: jpg sendmail1.jpg (15.6 KB, 1 views)
File Type: jpg sendmail2.jpg (21.2 KB, 1 views)
linuxubuntu cov is offline     Reply With Quote
Old 11-01-2009, 02:13 AM   #10
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 5,036
Thanked: 222
I'm not familiar with Evolution, but I guess you need to setup it like this, using as server your sendmail's ip.

Regards
linuxslackware bathory is offline     Reply With Quote
Old 11-01-2009, 02:23 AM   #11
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 232
Thanked: 0

Original Poster
Yes. I've seen that, but all it says is to configure Sendmail (which I appear to have done) and then select Sendmail from the dropdown list.

Which can be seen by my screenshots above.

I wonder if it's holding on to some legacy configuration?
linuxubuntu cov is offline     Reply With Quote
Old 11-01-2009, 03:14 AM   #12
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 5,036
Thanked: 222
I guess that when you select sendmail instead of SMTP, it uses the command line sendmail to send emails, using options (like smtp auth with sender's id) passed from Evolution's configuration and that's why sendmail is complaining.
The strange thing is that there is nothing written to the logs!!!
linuxslackware bathory is offline     Reply With Quote
Old 11-01-2009, 05:15 AM   #13
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 232
Thanked: 0

Original Poster
Ah!

Found it!

I had earlier configured Evolution's mailing servers with a 'From' address which had a typo.

I subsequently spotted the typo and corrected it, but I had already sent my test email which failed because Sendmail didn't recognise the address.

However, although I corrected Evolutions server setup, the wrong 'From' address was still prepended onto my test email and, instead of writing a new email, I was just clicking Send/Receive, which of course was always failing.

I wrote a fresh test email and it works!

Thanks very much for the time you have put into this, I appreciate your assistance!

Regards,


Dave Coventry.

PS. That said, it hasn't arrived in my gmail intray yet
linuxubuntu cov is offline     Reply With Quote
Old 11-01-2009, 08:46 AM   #14
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 5,036
Thanked: 222
Check the logs to see if gmail has accepted it, or what happened.
Could have finished in the spam folder of your account.

Regards
linuxslackware bathory is offline     Reply With Quote
Old 11-02-2009, 02:08 AM   #15
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 232
Thanked: 0

Original Poster
Quote:
Originally Posted by bathory View Post
Check the logs to see if gmail has accepted it, or what happened.
Could have finished in the spam folder of your account.

Regards
Code:
root@Gimli:/home/dave# cat /var/log/mail.log

Nov  2 05:42:00 Gimli sendmail[12397]: nA23fxP0012397: Authentication-Warning: Gimli.example.co.za: dave set sender to davec@example using -f
Nov  2 05:42:02 Gimli sendmail[12397]: nA23fxP0012397: from=davec@example, size=338, class=0, nrcpts=1, msgid=<1257133319.10927.0.camel@Gimli>, relay=dave@localhost
Nov  2 05:42:06 Gimli sendmail[12397]: nA23fxP0012397: to=cov@hotmail.com, ctladdr=davec@example (1000/1000), delay=00:00:07, xdelay=00:00:04, mailer=relay, pri=30338, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection timed out with [127.0.0.1]
Nov  2 05:45:18 Gimli sm-msp-queue[9361]: nA1A3RUK007200: to=cov@gmail.com, delay=17:41:51, xdelay=00:06:18, mailer=relay, pri=4080336, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection timed out with [127.0.0.1]
Nov  2 05:50:08 Gimli sendmail[13240]: nA23o7CG013240: Authentication-Warning: Gimli.example.co.za: dave set sender to davec@example using -f
Nov  2 05:50:10 Gimli sendmail[13240]: nA23o7CG013240: from=davec@example, size=337, class=0, nrcpts=1, msgid=<1257133807.12548.0.camel@Gimli>, relay=dave@localhost
Nov  2 05:50:14 Gimli sendmail[13240]: nA23o7CG013240: to=cov@yahoo.com, ctladdr=davec@example (1000/1000), delay=00:00:07, xdelay=00:00:04, mailer=relay, pri=30337, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection timed out with [127.0.0.1]
Nov  2 05:51:36 Gimli sm-msp-queue[9361]: nA15e2Nt006607: to=root, delay=22:05:16, xdelay=00:06:18, mailer=relay, pri=5251710, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection timed out with [127.0.0.1]
Nov  2 05:55:01 Gimli sendmail[13476]: nA23t071013476: Authentication-Warning: Gimli.example.co.za: dave set sender to davec@example using -f
Nov  2 05:55:03 Gimli sendmail[13476]: nA23t071013476: from=davec@example, size=335, class=0, nrcpts=1, msgid=<1257134100.13415.0.camel@Gimli>, relay=dave@localhost
Nov  2 05:55:07 Gimli sendmail[13476]: nA23t071013476: to=cov@yahoo.com, ctladdr=davec@example (1000/1000), delay=00:00:07, xdelay=00:00:04, mailer=relay, pri=30335, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection timed out with [127.0.0.1]
root@Gimli:/home/dave#
/var/log/mail.err and /var/log/mail.warn don't show anything.

No Message are being received although they appear to have been sent.
linuxubuntu cov is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 with evolution problem shivanrathore Linux - Server 4 05-16-2008 02:48 PM
Difference between Sendmail and Evolution ? paragkalra Linux - Software 1 08-26-2007 02:46 AM
evolution sendmail problem christer Linux - Software 13 09-07-2004 04:19 AM
Evolution and sendmail devinWhalen Linux - Software 1 04-15-2003 01:02 AM
RH8.0 Evolution or Sendmail GtkUser Linux - Software 1 11-08-2002 04:02 AM


All times are GMT -5. The time now is 08:31 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration