View previous topic :: View next topic |
Author |
Message |
carpman Advocate
Joined: 20 Jun 2002 Posts: 2202 Location: London - UK
|
Posted: Fri Oct 22, 2004 1:41 pm Post subject: postfix remote authentication (solved) |
|
|
Hello, i have setup a mailserver using fetchmail and postfix to retrieve mail from ISP and deliver it via courier imap to local users.
Mail is sent via ISP smtp using relay setting in postfix main.cf.
Now if setup an imap account and access it locally on server i can send and recieve mail ok, but if i setup outlook on network PC i can recieve email ok but cannot send, the connection keeps being refused.
Not sure if this is related but even with password saved in outlook each time outlook is started password has to be entered again.
Logs don't show anything un-usually, though there is a problem writing to /tmp/procmail_log
cheers _________________ Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb
Last edited by carpman on Sun Oct 24, 2004 1:46 pm; edited 1 time in total |
|
Back to top |
|
|
kashani Advocate
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Fri Oct 22, 2004 2:52 pm Post subject: |
|
|
I suspect that Postfix might be running on just localhost and not on the external IP. Do a netstat -ptln to see which IP Postfix is bound to. If this is the case you'll want to check your inet_interfaces setting in /etc/postfix/main.cf
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
|
carpman Advocate
Joined: 20 Jun 2002 Posts: 2202 Location: London - UK
|
Posted: Sun Oct 24, 2004 1:32 pm Post subject: |
|
|
kashani wrote: | I suspect that Postfix might be running on just localhost and not on the external IP. Do a netstat -ptln to see which IP Postfix is bound to. If this is the case you'll want to check your inet_interfaces setting in /etc/postfix/main.cf
kashani |
Hello, thanks for reply.
here is results
with inet_interfaces set to localhost
Code: |
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:32768 0.0.0.0:* LISTEN 2084/xinetd
tcp 0 0 127.0.0.1:10026 0.0.0.0:* LISTEN 30500/master
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1933/portmap
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 2596/perl
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 30500/master
tcp 0 0 :::993 :::* LISTEN 2185/couriertcpd
tcp 0 0 :::995 :::* LISTEN 2210/couriertcpd
tcp 0 0 :::110 :::* LISTEN 2197/couriertcpd
tcp 0 0 :::143 :::* LISTEN 2166/couriertcpd
tcp 0 0 :::22 :::* LISTEN 2054/sshd
|
with inet_interfaces set to server IP address
Code: |
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:32768 0.0.0.0:* LISTEN 2084/xinetd
tcp 0 0 127.0.0.1:10026 0.0.0.0:* LISTEN 29182/master
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1933/portmap
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 2596/perl
tcp 0 0 192.168.1.2:25 0.0.0.0:* LISTEN 29182/master
tcp 0 0 :::993 :::* LISTEN 2185/couriertcpd
tcp 0 0 :::995 :::* LISTEN 2210/couriertcpd
tcp 0 0 :::110 :::* LISTEN 2197/couriertcpd
tcp 0 0 :::143 :::* LISTEN 2166/couriertcpd
tcp 0 0 :::22 :::* LISTEN 2054/sshd
|
Neither of these work, i get this for localhost error:
Code: |
The connection to the server has failed. Account: 'isabella@mydomain.com', Server: 'smaartmail.mydomain.co.uk', Protocol: SMTP, Port: 25, Secure(SSL): No, Socket Error: 10061, Error Number: 0x800CCC0E
|
and this error when set to server IP
Code: |
Your server has unexpectedly terminated the connection. Possible causes for this include server problems, network problems, or a long period of inactivity. Subject 'gsnat response 3.2', Account: 'isabella@mydomain.com', Server: 'smaartmail.mydomain.co.uk', Protocol: SMTP, Port: 25, Secure(SSL): No, Error Number: 0x800CCC0F
|
If i set outlook to use ssl for smtp i get this error
Code: |
The server does not support a SSL connection. Account: 'isabella@mydomain.com', Server: 'smaartmail.mydoman.co.uk', Protocol: SMTP, Server Response: '250 8BITMIME', Port: 25, Secure(SSL): Yes, Server Error: 250, Error Number: 0x800CCC7D
|
cheers
[/code] _________________ Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb |
|
Back to top |
|
|
carpman Advocate
Joined: 20 Jun 2002 Posts: 2202 Location: London - UK
|
Posted: Sun Oct 24, 2004 1:40 pm Post subject: |
|
|
here is the variables from main.cf
Code: |
inet_interfaces = 192.168.1.2
mynetworks_style = host
myhostname = smaartmail.mydomain.co.uk
mydestination = $myhostname, localhost.$mydomain, $mydomain
mynetworks = 192.168.1.0/255, 127.0.0.0/8
delay_warning_time = 4h
unknown_local_recipient_reject_code = 450
home_mailbox = Maildir/
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail -Y -a $DOMAIN
relayhost = mail.btclick.com
|
_________________ Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb |
|
Back to top |
|
|
carpman Advocate
Joined: 20 Jun 2002 Posts: 2202 Location: London - UK
|
Posted: Sun Oct 24, 2004 1:46 pm Post subject: |
|
|
ok seen the error, it it was netmask error should have been
mynetworks = 192.168.1.0/24, 127.0.0.0/8
not
mynetworks = 192.168.1.0/255, 127.0.0.0/8
_________________ Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb |
|
Back to top |
|
|
kashani Advocate
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Mon Oct 25, 2004 6:46 pm Post subject: |
|
|
You might want to change it to:
inet_interfaces = all
Postfix should always run on localhost or things like cron and the like can have issues.
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
|
carpman Advocate
Joined: 20 Jun 2002 Posts: 2202 Location: London - UK
|
Posted: Tue Oct 26, 2004 9:33 am Post subject: |
|
|
kashani wrote: | You might want to change it to:
inet_interfaces = all
Postfix should always run on localhost or things like cron and the like can have issues.
kashani |
I found i had issues with just IP address or localhost, one would allow smtp but not imap and vice verser so ended up putting
inet_interfaces = localhost, 192.168.1.2 _________________ Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb |
|
Back to top |
|
|
|