LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-08-2003, 02:05 AM   #1
jay820
Member
 
Registered: Feb 2003
Distribution: Mandrake 9.1
Posts: 55

Rep: Reputation: 15
Question postfix with dynamic ip config


heres the situtation, id like to setup my postfix using the following setup

my box ip config: dynamic
free dns acct: jay1.sytes.net
my localhostname: jay.madcat.org

ive read around somethings about this email servers, but most of them are setup for lan and static ip configurations, so im looking for a good straight forward guide or even may be someone could help out here on configuring postfix using dynamic ip (www.no-ip.com) configuration...
 
Old 08-08-2003, 03:26 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
It's not nearly as bad as it would seem. As long as your client for your dynamic host works (meaning when your IP changes it updates your DNS provider - noip.com) then you would set it up just as your would a static as there isn't any standard calls to your IP but rather to your domain which is NOT static

Some info that might be puzzling:
$myhostname
You get from opening up a console and typing:
hostname
It'll report back what your hostname is. If it's nothing, you can set one up, or just leave it blank, that's for your own internal network, no worries. Follow it with your domain, so if your hostname reports back as 'localhost' then:
$myhostname = localhost.jay1.sytes.net

$mydomain
Is the domain that you've chosen to use with your dynamic IP service. So:
$mydomain = jay1.sytes.net
is your domain.

You'll also wanna setup relaying for your local network, but the Postfix docs are pretty good about covering those things, as well as other threads on it around here

Cool
 
Old 08-08-2003, 06:56 AM   #3
jay820
Member
 
Registered: Feb 2003
Distribution: Mandrake 9.1
Posts: 55

Original Poster
Rep: Reputation: 15
first of all, tnx masterC for the quick response, and tnx for having guys like u here on LQ, i notice that u respond most of the technical questions here at LQ,

as for my situation, yes i have configured my dns client on my machine to update my subdomain(no-ip) under my dynamic ISP ip every one minute ... so im now good to go for the config file, (sorry for my english)...
 
Old 08-08-2003, 07:18 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Great! Glad I can help

Good Luck, and have fun! It's a great mail server, and has A LOT of potential should you want "more" out of it.

Cool
 
Old 08-09-2003, 07:11 PM   #5
jay820
Member
 
Registered: Feb 2003
Distribution: Mandrake 9.1
Posts: 55

Original Poster
Rep: Reputation: 15
i have a very big question, how do i check if ive setup correctly?
 
Old 08-09-2003, 07:24 PM   #6
jay820
Member
 
Registered: Feb 2003
Distribution: Mandrake 9.1
Posts: 55

Original Poster
Rep: Reputation: 15
i have a very "basic" question, how do i check if ive setup correctly?
sorry typo...
 
Old 08-09-2003, 10:55 PM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Send/recieve some mail

Or, if you'd like, post it up and someone will probably take a look and let you know.

Cool
 
Old 08-10-2003, 12:26 AM   #8
jay820
Member
 
Registered: Feb 2003
Distribution: Mandrake 9.1
Posts: 55

Original Poster
Rep: Reputation: 15
ok, tnx so much masterC.... now my goal is too "ONLY" send email to the outside world, nothing fancy. etc...

(ive followed some guide on http://www.mandrakeuser.org/docs/con...il2.html#scen2 ...)

my main.cf is "fresh" / "untouched"

givng "postconf -n", results are...

alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
delay_warning_time = 4
inet_interfaces = localhost
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail -Y -a $DOMAIN
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.0.6/README_FILES
sample_directory = /usr/share/doc/postfix-2.0.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandrake Linux)
unknown_local_recipient_reject_code = 450


then, ive check using

#echo test | mail jay_820@hotmail.com -s test2222

then checking errors

/var/log/mail/info
Aug 10 13:19:40 jay postfix/smtp[3818]: connect to mx1.hotmail.com[65.54.254.129]: Connection timed out (port 25)
Aug 10 13:19:45 jay postfix/smtp[3818]: connect to mx3.hotmail.com[65.54.254.140]: No route to host (port 25)
Aug 10 13:19:45 jay postfix/smtp[3818]: 7E7DC3095D: to=<jay_820@hotmail.com>, relay=none, delay=252, status=deferred (connect to mx3.hotmail.com[65.54.254.140]: No route to host)


also found some errors on

/var/log/mail/errors
Aug 10 12:54:52 jay postfix/local[20331]: fatal: open database /etc/postfix/aliases.db: No such file or directory
Aug 10 12:55:45 jay postfix/smtpd[20349]: fatal: open database /etc/postfix/aliases.db: No such file or directory
Aug 10 12:55:53 jay postfix/local[20350]: fatal: open database /etc/postfix/aliases.db: No such file or directory




i can see that its trying to send my mail on hotmail.com, but theres this mx thing which as of now i dont understand yet that keeps my mail defferred...(queued) and undelivered...
(sorry for my poor enlish)

anyone can give me any suggestions?????
 
Old 08-10-2003, 01:49 AM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
For the aliases error run:
postalias /etc/postfix/aliases
And then:
postfix reload

That should curb that error. As for the hotmail error, see if you can send to other mail accounts, there have been some issues with Hotmail and AOL lately...

Cool
 
Old 08-10-2003, 02:47 AM   #10
jay820
Member
 
Registered: Feb 2003
Distribution: Mandrake 9.1
Posts: 55

Original Poster
Rep: Reputation: 15
wow, tnx for the response masterC... i never thought ull be the one to reply again.. tnx ... ill do that...
 
Old 08-10-2003, 02:55 AM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
You're welcome, if you need a mail account to test you can use me:
masterc AT masterc.no-ip.org

I don't refuse mail like AOL/hotmail might

Cool
 
Old 08-10-2003, 03:27 AM   #12
jay820
Member
 
Registered: Feb 2003
Distribution: Mandrake 9.1
Posts: 55

Original Poster
Rep: Reputation: 15
tnx a lot masterC..

now giving
# echo test | mail masterc@masterc.no-ip.org -s this_is_a_test

results are.....

viewing from webmin/postfix/queue messgs...

5DA863095E Sun Aug 10 16:33:32 root@jay.madcat.org masterc@masterc.no-ip.org 308

/var/log/mail/info
gives me

Aug 10 16:33:32 jay postfix/cleanup[5024]: 5DA863095E: message-id=<20030810203332.5DA863095E@jay.madcat.org>
Aug 10 16:33:43 jay postfix/smtp[5026]: connect to mail.curvins.com[4.65.24.211]: No route to host (port 25)
Aug 10 16:34:13 jay postfix/smtp[5026]: connect to cooler.curvins.com[4.65.24.211]: Connection timed out (port 25)
Aug 10 16:34:13 jay postfix/smtp[5026]: 5DA863095E: to=<masterc@masterc.no-ip.org>, relay=none, delay=41, status=deferred (connect to cooler.curvins.com[4.65.24.211]: Connection timed out)
 
Old 08-10-2003, 03:29 AM   #13
jay820
Member
 
Registered: Feb 2003
Distribution: Mandrake 9.1
Posts: 55

Original Poster
Rep: Reputation: 15
sorry heres the view from webmin/queue messgs...

5DA863095E Sun Aug 10 16:33:32 root@jay.madcat.org masterc@masterc.no-ip.org 308 connect to cooler.curvins.com[4.65.24.211]: Connection timed out
 
Old 08-10-2003, 03:37 AM   #14
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Hmm..

Any chance you know if your ISP has blocked port 25? You've got DNS working fine, that's my IP, but the port doesn't seem to be able to talk.

Cool
 
Old 08-10-2003, 04:01 AM   #15
jay820
Member
 
Registered: Feb 2003
Distribution: Mandrake 9.1
Posts: 55

Original Poster
Rep: Reputation: 15
tnx a lot masterC.....

hmmmmm..... i have been to a webpage w/c test if my port 25 is block or if sendmail or other mail server will work on my box, but upon testing my box, it failed... but then, ive done a little test on my own, by changing "inet_interfaces = all" on main.cf, then telnet my IP add(ppp) on port 25 .. and it let me in.... well , actually, i really dont know if that test is enough..

but then we could always change the port which we could listen or use right?
 
  


Reply



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
postfix on a dynamic IP (dhcp) machine problem hcchiao Linux - Newbie 1 09-17-2005 01:56 AM
Postfix config + dynamip.com? dbc001 Mandriva 3 08-17-2005 08:18 AM
Postfix config problem Rarrum Linux - Networking 2 01-08-2005 07:48 PM
basic config for postfix dienerk Linux - General 1 10-25-2004 02:52 AM
hostname/domainname/postfix setup with dynamic DNS from no-ip tesauce98 Linux - Software 10 09-17-2003 01:01 PM

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

All times are GMT -5. The time now is 12:29 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