LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-01-2008, 04:21 AM   #16
maceee
Member
 
Registered: Nov 2008
Posts: 93

Original Poster
Rep: Reputation: 18

I found and corrected the setting for this too...thank you very very much for your reply..

but now...since this mail arrives to my server...at which mailbox does it delivered too?

do i need to create virtual domains or aliases in order to deliver the mails?

For example..i have currently i user test1 at which i can receive and sent mail outside my network...but where does these mail that comes delivers too?

thank you
 
Old 12-01-2008, 04:39 AM   #17
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Typically postfix delivers to a user's home directory (Maildir) or /var/spool/mail.

Postfix will happily deliver to valid users, so unless you want to complicate things stick with that.

You can get mail from the command line using the mail command, or set up a pop/imap server like dovecot and get your mail with evolution/thunderbird/outlook/etc.
 
Old 12-01-2008, 05:12 AM   #18
maceee
Member
 
Registered: Nov 2008
Posts: 93

Original Poster
Rep: Reputation: 18
I currently have 1 user named test1 with mailbox...but messages i have sent to this address never delivered to this mailbox..

i just want to sent me from outside mail to test1@example.com and this to be delivered to test1 maildir..which of course i declare to postfix..'

inside postfix i have : home_mailbox = Maildir/

maybe messages i sent from outside never came to my server????

thank you

Last edited by maceee; 12-01-2008 at 05:13 AM.
 
Old 12-01-2008, 05:16 AM   #19
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You should find the messages under /home/test1/Maildir in the "new" or "cur" directories.
 
Old 12-01-2008, 05:28 AM   #20
maceee
Member
 
Registered: Nov 2008
Posts: 93

Original Poster
Rep: Reputation: 18
right...but this folder is empty!!!


maybe should i edot local_recipient_maps ???

thank you

Last edited by maceee; 12-01-2008 at 05:29 AM.
 
Old 12-01-2008, 05:32 AM   #21
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Time to look at your logs - I don't know what distro you use. For me - /var/log/maillog.

Send test1 a message (just "mail -s test test1 < /dev/null" should do), the tail /var/log/maillog (or relevant log file)
 
Old 12-01-2008, 05:37 AM   #22
maceee
Member
 
Registered: Nov 2008
Posts: 93

Original Poster
Rep: Reputation: 18
I have to my main.cf : myorigin = netconfig.gr

I have create a user test1@netconfig.gr

from maillog i get :
Dec 1 13:31:02 mail postfix/smtp[3212]: connect to mx1.netconfig.gr[62.1.55.34]: Connection timed out (port 25)
Dec 1 13:31:02 mail postfix/smtp[3212]: C7F89D9022: to=<root@netconfig.gr>, orig_to=<root>, relay=none, delay=61, delays=0.79/0.01/60/0, dsn=4.4.1, status=deferred (connect to mx1.netconfig.gr[62.1.55.34]: Connection timed out)

DNS error???

thank you
 
Old 12-01-2008, 05:38 AM   #23
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
If you are doing this on the server, yes.
 
Old 12-01-2008, 05:43 AM   #24
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What is in /etc/hosts?
 
Old 12-01-2008, 05:43 AM   #25
maceee
Member
 
Registered: Nov 2008
Posts: 93

Original Poster
Rep: Reputation: 18
i have alter dns records just about 3 hours ago..so i hope that dns hasn;t still change...
So, after dns propegation i should receive messages under it's account maildir..right???

thank you
 
Old 12-01-2008, 06:09 AM   #26
maceee
Member
 
Registered: Nov 2008
Posts: 93

Original Poster
Rep: Reputation: 18
dns has succefully propagate..but i get :

Dec 1 14:04:54 mail postfix/smtp[4321]: connect to mx2.netconfig.gr[80.245.170.117]: Connection timed out (port 25)

where 80.245.170.117 is ip of mail server...

can you pls assist on this.??

thank you
 
Old 12-01-2008, 06:53 AM   #27
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
where does this log come from? how is this IP address assigned - actually on the box itself or natted on an external router?
 
Old 12-01-2008, 07:15 AM   #28
maceee
Member
 
Registered: Nov 2008
Posts: 93

Original Poster
Rep: Reputation: 18
ip assigned to external dns server, not locally...
this log is the maillog of the mail server..

thank you
 
Old 12-01-2008, 07:47 AM   #29
maceee
Member
 
Registered: Nov 2008
Posts: 93

Original Poster
Rep: Reputation: 18
when i add this:
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
to main.cf i get relay access denied message...

if i add the below without reject_unauth_destination i get this:

Dec 1 15:43:02 mail postfix/smtpd[5859]: fatal: parameter "smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit
Dec 1 15:43:03 mail postfix/master[4999]: warning: process /usr/libexec/postfix/smtpd pid 5859 exit status 1
Dec 1 15:43:03 mail postfix/master[4999]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling

mynetworks looks like this:mynetworks = 0.0.0.0/32, 10.70.36.0/24, 127.0.0.0/8,


thank you very much
 
Old 12-01-2008, 08:01 AM   #30
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
so you're going *from* that mail server *out* to an external IP which will be natted back to you? That's unlikely to ever work, as I'd expect you'd get some nasty asym routes and such.

to connect to your internal mail server internally you'd generally use a seperate DNS hostname or configure firewalls to do DNS rewriting exactly for this eventuality.
 
  


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 allowing mails to send from telnet rakmvk Linux - Server 2 11-10-2008 08:18 AM
postfix started but can't telnet. waelaltaqi Linux - Software 10 02-27-2007 06:08 PM
Cannot telnet postfix on port 25 alivewithtechnology Linux - General 6 08-22-2006 03:23 PM
cannot telnet postfix smtp 25 on external ip slam Linux - Software 4 04-20-2006 03:32 PM
postfix or telnet problem?? hivtop Red Hat 0 04-20-2005 06:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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