LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-15-2003, 12:14 PM   #16
Aeiedil
LQ Newbie
 
Registered: Aug 2003
Distribution: Red Hat 9
Posts: 4

Original Poster
Rep: Reputation: 0

By the way, I finally got this sorted

I chose in the end to use sendmail fetchmail and qpopper. I had to force installs of some to get over some corrupted or semi-complete installs but when they were in they configured easily with Webmin

Thanks for the pointers
 
Old 09-15-2003, 08:09 PM   #17
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
Quote:
Originally posted by TongueTied
Using your main.cf file, I can send from the server to a user and the email can then be read with something like pine on the server. Now, the client machines canít send. I get the following error:

The connection to the server has failed. Account: 'dakota', Server: 'dakota.leapp.office', Protocol: SMTP, Port: 25, Secure(SSL): No, Socket Error: 10061, Error Number: 0x800CCC0E

It seems that the client machines canít communicate with the PostFix at all!
Have you relaod your postfix?
 
Old 09-15-2003, 09:23 PM   #18
macdafoe
LQ Newbie
 
Registered: Sep 2003
Location: Fort Lauderdale
Distribution: RH 8.0
Posts: 23

Rep: Reputation: 15
EvilOne,

only 16 hrs?!!....yeah, I'm still in that ballpark too, with the mail server configuration....

the 2 issues which are remaining are:

#1.) inability to retrieve mail from using POP3 from clients....this goes for on the mail server itself using Netscape, as well as Windoze clients with Outlook Express.

#2.) outgoing mail is received by recipients with my domains address appearing as: [USER@.MYDOMAIN.COM] instead of the accepted [USER@MYDOMAIN.COM]


Let me know what you guys think....I'll be up all night (again) trying to work things out....



[root@JUPITER macdafoe]# /usr/sbin/postconf -n
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 10
default_privs = nobody
inet_interfaces = all
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail -a $DOMAIN -d $LOGNAME
mydestination = localhost, $mydomain mynetworks = 192.168.1.150, 192.168.1.200,
192.168.1.250, 127.0.0.0/8
mydomain = netelsys.com
myhostname = jupiter.netelsys.com
myorigin = $mydomain
queue_directory = /var/spool/postfix
smtpd_banner = $myhostname ESMTP $mail_name


=========================================
 
Old 09-17-2003, 02:48 AM   #19
TongueTied
Member
 
Registered: Aug 2003
Distribution: SuSE 8.1 pro
Posts: 94

Rep: Reputation: 15
I still canít seem to get the client machines on the network to connect to the smtp server (postfix). My main.cf file is listed below but, is there anyway to see if it something else blocking them? Such as the firewall or a inadvertently closed port 25? My firewall shouldnít be blocking anything on the 192.168.1.0 subnet so I am doubting that is the issue.

Main.cf

alias_maps = hash:/etc/aliases
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_list = $mydomain
disable_dns_lookups = no
inet_interfaces = all
mail_spool_directory = /var/mail
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains = my-internet-domain.com
masquerade_exceptions = root
mydestination = $myhostname, localhost.$mydomain, $mydomain
mydomain = leapp.office
myhostname = dakota.leapp.office
mynetworks = 192.168.1.0/24, 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/sbin/sendmail
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
virtual_maps = hash:/etc/postfix/virtual
 
Old 09-17-2003, 03:01 AM   #20
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
Hmm How try to edit /etc/postfix/access and put your network's ip, hostname, your domain like this :
/etc/postfix/access :

192.168.1.0 RELAY
yourhostname RELAY

save it and restart your postfix.

And also to check your /etc/hosts, /etc/hosts.deny
be sure that in your /etc/hosts.deny or /etc/hosts , you didn't blocked any IP escpecially your IP.
 
Old 09-17-2003, 03:05 AM   #21
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Rep: Reputation: 30
have you installed an smtp service? I found after many hours it does'nt come with postfix. You need to edit :

/etc/inetd.conf

and add or uncomment the line :

imap2 stream tcp nowait root /usr/sbin/tcpd imapd

that should sort you out

Ade.
 
Old 09-17-2003, 03:07 AM   #22
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Rep: Reputation: 30
joseph, you don't NEED to use that file,
he's used the mynetworks parameter instead in his main.cf file.
 
Old 09-17-2003, 03:54 AM   #23
TongueTied
Member
 
Registered: Aug 2003
Distribution: SuSE 8.1 pro
Posts: 94

Rep: Reputation: 15
Success, success, success! One small step for newbies but a bloody giant leap for me! Bare with me while I do a happy happy joy joy dance! (Sounds of ďhappy happy joy joyĒ reverberate around the room)

Well, that seemed to work. I had an imap line in the inetd but not an imap2 line. The imap line didnít do anything when uncommented. It needed the imap2 line. I can now send mail locally from any machine on my network to a user on the network. I now have to get the system to relay to my ISPís smtp server that requires authenticated smtp. Any suggestions? I have seen that you can specify for authentication for client systems but what about the smtp you relay to? Mine requires authentication.
 
Old 09-17-2003, 04:10 AM   #24
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Rep: Reputation: 30
lmao @ the happy happy joy joy dance... Never thought i'd hear that again.

Sorry but for authenticated smtp i've not a clue lol.

I pay www.dyndns.org about $20 per year for their webhop relay service. For that i also get 2 backup MX servers that store my mail if my server happens to be offline. Take a look and see what you think.

Damn glad to see i was of help though, and many hours of headache's helped someone else lol.


Nice work my friend !!!

Ade
 
Old 03-26-2009, 07:48 AM   #25
Eileen1
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Rep: Reputation: 0
I have your setup working

Hello - I have the setup you are asking about working - if you have any questions let me know and I can send you the config. We have a separate internal server that has web apps - a request form where users can request a userid and pw for new employees. You can separate them into groups and setup security based upon he group or dept. Let me know if you need specifics.
 
Old 03-26-2009, 08:33 AM   #26
macdafoe
LQ Newbie
 
Registered: Sep 2003
Location: Fort Lauderdale
Distribution: RH 8.0
Posts: 23

Rep: Reputation: 15
Thanks for your response. Please aware, this is an OLD thread. I orginally solved this issue with a day or so, back in 2003!!
 
Old 10-12-2009, 02:58 PM   #27
richmich
LQ Newbie
 
Registered: Oct 2009
Location: Michigan USA
Distribution: Ubuntu 9
Posts: 2

Rep: Reputation: 0
Yes Eileen1... I'd like to see your config

Quote:
Originally Posted by Eileen1 View Post
Hello - I have the setup you are asking about working - if you have any questions let me know and I can send you the config. We have a separate internal server that has web apps - a request form where users can request a userid and pw for new employees. You can separate them into groups and setup security based upon he group or dept. Let me know if you need specifics.
Yes... I am trying to use Ubuntu and Postfix and ?? to do an internal (intranet) mail server config. Having some trouble making outgoing mail go to my ISP's (external) server if it is not destined for an internal user. Thanks for offering help!
 
Old 10-13-2009, 09:16 AM   #28
Eileen1
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Rep: Reputation: 0
sorry, macdafoe but I am a newbie as I see you still are glad I was able to provide a laugh

to richmich:
this is my sendmail.mc config file - we are currently not using this config anymore since we switched to google apps. I would be happy to help anyway I can. I know what it is like to search for answers under a time crunch. Hope some of the parms I use can help you to determine what you need. Let me know how you make out

divert(-1)dnl
dnl #
dnl # This is the sendmail macro config file for m4. If you make changes to
dnl # /etc/mail/sendmail.mc, you will need to regenerate the
dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is
dnl # installed and then performing a
dnl #
dnl # make -C /etc/mail
dnl #
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for Red Hat Linux')dnl
OSTYPE(`linux')dnl
dnl #
dnl # Uncomment and edit the following line if your outgoing mail needs to
dnl # be sent out through an external mail server:
dnl #
dnl # FORCE ALL MAIL THROUGH OUR EXTERNAL SERVER
define(`SMART_HOST',`enter the external server name here')<-------- Your External server name
MASQUERADE_AS(xxxxxx)dnl <--- Your ISP's domain name goes here
FEATURE(`allmasquerade')dnl
FEATURE(`masquerade_envelope')dnl

dnl #
define(`confDEF_USER_ID',``8:12'')dnl
define(`confTRUSTED_USER', `smmsp')dnl
dnl define(`confAUTO_REBUILD')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl<---- for incoming mail
define(`ALIAS_FILE', `/etc/aliases')dnl
dnl define(`STATUS_FILE', `/etc/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
define(`confTO_IDENT', `0')dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
FEATURE(`accept_unresolvable_domains')dnl
LOCAL_DOMAIN(`your local domain')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl

This is a config from main.cf that Evilone previously posted might be of help - I am not familiar with it myself but may have something useful to you.- see listing on previous post

alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 10
default_privs = nobody
inet_interfaces = all
local_destination_concurrency_limit = 2
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail -a $DOMAIN -d $LOGNAME
mydestination = localhost, lizzynnarn.com
mydomain = lizzynnarn.com
myhostname = merlin.lizzynnarn.com
mynetworks = 192.168.7.1, 192.168.7.2, 192.168.6.7.3, 193.61.122.57, 193.61.122.
51, 127.0.0.0/8
myorigin = $mydomain
queue_directory = /var/spool/postfix
smtpd_banner = $myhostname ESMTP $mail_name

Last edited by Eileen1; 10-13-2009 at 11:14 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mail Redirection from external id to internal id ! please help thiyagu4u Linux - Networking 4 07-14-2005 10:38 PM
setup email client for internal and external mail access shadoxity Linux - Software 15 04-21-2005 08:17 AM
how to set apache server with internal ip for external viewers overclocking Linux - Networking 2 01-26-2004 11:20 PM
Postfix mail server not accepting incoming mail from the external interface rexmundi Linux - Networking 7 12-22-2003 03:41 PM
Postfix relaying mail to internal mail server tradecraft1 Linux - Networking 2 10-28-2003 03:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:14 AM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration