Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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'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.
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
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
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
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?
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!!!
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.