Page 1 of 2

Can't send mail, port 25 blocked

Posted: Wed Jan 14, 2009 2:44 am
by kejpa
Hi,
my ISP has blocked access to port 25, but generously opened it's own SMTP server to all within it's IP-range.
How do I set up Scalix (11.4.2.12068) to use an external SMTP server?

TIA
/Kjell

Posted: Wed Jan 14, 2009 4:15 am
by criptus
You should configure sendmail to use your ISP SMTP as smart host.

Posted: Wed Jan 14, 2009 10:02 am
by kejpa
criptus wrote:You should configure sendmail to use your ISP SMTP as smart host.

I've added

Code: Select all

.   smtp:mail.aland.net
to my mailertable, rebuild and restarted sendmail.

Still no show :(
TIA
/Kjell

Posted: Wed Jan 14, 2009 10:09 am
by RSisco
You should use the smart_host entry in the sendmail.mc:

Code: Select all

define(`SMART_HOST',`your_smtp_server_here')dnl


and then if your smtp host requires logging in, I use:

Code: Select all

FEATURE(authinfo)dnl


Then I have a file named authinfo1 in the same folder that has the following:

Code: Select all

AuthInfo:your_smtp_server_here "U:your_username_here" "P:your_password_here" "M:PLAIN"


Then I run:

Code: Select all

makemap hash /etc/mail/authinfo < /etc/mail/authinfo1


Rebuild sendmail.cf and restart sendmail.

Posted: Wed Jan 14, 2009 2:48 pm
by kejpa
Hey!
Sendmail seems to be working after the trick of defining SMART_HOST, I manage to send mail at the command prompt. But not using Scalix, is there any settings for Scalix I've missed?

TIA
/Kjell

Posted: Wed Jan 14, 2009 4:33 pm
by schmoe90
Scalix just invokes sendmail, but you probably want to make sure that all of sendmail's processes have been restarted to pick up the changed cf.

Posted: Wed Jan 21, 2009 10:00 am
by kejpa
Hi again,
back again, sending mail still don't work after restarting the server a couple of times.

I've done some research since my last post and I've found out:
1. I can send mail from the command prompt.
2. I cannot send mail from the webclient.
3. I cannot send mail from KMail using the Scalix server
4. I can send mail from KMail if I set it up as an ordinary POP3-mail account and specify my ISPs SMTP-server.

The mail never delivered locally when I'm using the webclient, it never shows up in my Sendmail out queue, and there's nothing in any logs. I guess I should change the log level, to what, and where?

Any help appreciated!
/Kjell

Posted: Wed Jan 21, 2009 1:22 pm
by schmoe90
SWA should be passing mail to the Scalix server (it's an IMAP client), and it should then be passing mail outgoing to the smarthost.

Posted: Wed Jan 21, 2009 3:39 pm
by kejpa
Hi,
thanks for your effort :)

schmoe90 wrote:SWA should be passing mail to the Scalix server (it's an IMAP client), and it should then be passing mail outgoing to the smarthost.

Is there any way I can test if the Scalix server is sending mail in the right way. I mean, if SWA is an IMAP client i could bypass that possible trouble.

Best regards!
/Kjell

Posted: Thu Jan 22, 2009 12:48 pm
by schmoe90
You should be able to see SWA sending messages in the logs of the outgoing sendmail / smtp server.

Posted: Thu Jan 22, 2009 3:09 pm
by kejpa
Nope. No nothing at all in the mail logs :(
Due to a failure to establish a connection, the message could not be sent.
Please try again later. A copy of the message has been placed into your 'Drafts' folder.

I all I get

Ideas? I'm clueless :(

/Kjell

Posted: Fri Jan 23, 2009 12:30 am
by Valerion
Are you letting SWA connect to the Scalix SMTP relay or your own SMTP server? SWA expects to be able to do SMTP Auth, and usually it can only do this against the Scalix SMTP Relay. Check where it connects to that it is indeed sending to the correct listener.

Posted: Fri Jan 23, 2009 2:56 am
by kejpa
Valerion wrote:Are you letting SWA connect to the Scalix SMTP relay or your own SMTP server? SWA expects to be able to do SMTP Auth, and usually it can only do this against the Scalix SMTP Relay. Check where it connects to that it is indeed sending to the correct listener.

I'd love to ;)
Where are the settings?

Thanks
/Kjell

Posted: Fri Jan 23, 2009 4:50 am
by Valerion
Look in /var/opt/scalix/??/webmail/swa.properties

Posted: Mon Jan 26, 2009 4:57 am
by kejpa
Valerion wrote:Look in /var/opt/scalix/??/webmail/swa.properties

OK,
I have been there.
I've had the setting for my ISP's smtp but now the setting is for localhost

Code: Select all

swa.email.smtpServer=localhost


Is there some way of reinstalling the whole shebang and doing it right from the start? I'm kind of getting tired of it all :(

Thanks for your help, I appreciate the efforts!
/Kjell