Can't send mail, port 25 blocked

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

kejpa
Posts: 51
Joined: Tue Nov 25, 2008 9:08 am

Can't send mail, port 25 blocked

Postby kejpa » Wed Jan 14, 2009 2:44 am

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

criptus
Posts: 86
Joined: Tue Dec 23, 2008 2:23 pm
Location: http://www.slovenia.si/

Postby criptus » Wed Jan 14, 2009 4:15 am

You should configure sendmail to use your ISP SMTP as smart host.

kejpa
Posts: 51
Joined: Tue Nov 25, 2008 9:08 am

Postby kejpa » Wed Jan 14, 2009 10:02 am

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

RSisco
Posts: 212
Joined: Thu Jul 03, 2008 2:44 pm
Location: Springfield, MO
Contact:

Postby RSisco » Wed Jan 14, 2009 10:09 am

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.

kejpa
Posts: 51
Joined: Tue Nov 25, 2008 9:08 am

Postby kejpa » Wed Jan 14, 2009 2:48 pm

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

schmoe90
Scalix
Scalix
Posts: 900
Joined: Mon May 07, 2007 11:51 am

Postby schmoe90 » Wed Jan 14, 2009 4:33 pm

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.

kejpa
Posts: 51
Joined: Tue Nov 25, 2008 9:08 am

Postby kejpa » Wed Jan 21, 2009 10:00 am

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

schmoe90
Scalix
Scalix
Posts: 900
Joined: Mon May 07, 2007 11:51 am

Postby schmoe90 » Wed Jan 21, 2009 1:22 pm

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.

kejpa
Posts: 51
Joined: Tue Nov 25, 2008 9:08 am

Postby kejpa » Wed Jan 21, 2009 3:39 pm

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

schmoe90
Scalix
Scalix
Posts: 900
Joined: Mon May 07, 2007 11:51 am

Postby schmoe90 » Thu Jan 22, 2009 12:48 pm

You should be able to see SWA sending messages in the logs of the outgoing sendmail / smtp server.

kejpa
Posts: 51
Joined: Tue Nov 25, 2008 9:08 am

Postby kejpa » Thu Jan 22, 2009 3:09 pm

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

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Fri Jan 23, 2009 12:30 am

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.

kejpa
Posts: 51
Joined: Tue Nov 25, 2008 9:08 am

Postby kejpa » Fri Jan 23, 2009 2:56 am

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

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Fri Jan 23, 2009 4:50 am

Look in /var/opt/scalix/??/webmail/swa.properties

kejpa
Posts: 51
Joined: Tue Nov 25, 2008 9:08 am

Postby kejpa » Mon Jan 26, 2009 4:57 am

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


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 2 guests

cron