LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-28-2007, 08:57 AM   #1
vargadanis
Member
 
Registered: Sep 2006
Posts: 248

Rep: Reputation: 30
postfix and simple local delivery problems


Hi!

I am trying to get postfix to work but it is not that simple.
Background: there is a domain provider, similar to dyndns.com . I have a registered account. The MX record of their system is pointing to my computer. What I have so far:
/etc/hostname:
Code:
               dani
/etc/hosts:
Code:
               192.168.0.119 danis.myip.hu danis
               127.0.0.1     localhost.localdomain localhost
/etc/resolv.conf
Code:
               search        theirnameserver.ext
               nameserver    123.123.123.123
The MX record is mail.danis.myip.hu.
My computer is behind a router but I forwarded all possible ports to the local computer. Eg: 53, 25, 143, 110, 80, 23, 22, 21
And what I am trying to do right now is only local delivery.
I have a debian Edgy core system installed, so not even the standard packages. I have postfix also installed. This is what I have in my main.cf file:
Code:
myorigin = $mydomain
mydestination = $myhostname localhost.$mydomain localhost $mydomain
myhostname = mail
mydomain = danis.myip.hu

mynetworks_style = host
mynetworks = 127.0.0.0/8 192.168.0.0/24

relay_domains = $mydestination
relayhost = $mydomain

notify_classes = policy, protocol, resource, software

inet_interfaces = all
After restarting postfix I tried to send a mail to another user:
mail -s test dani@localhost (I was root)
Test
Ctrl+D
CC:
Enter

And nothing happens. :S
I chked the mail as the other user su - dani -> mail
So what are the things that I messed up? Pls help me
 
Old 08-28-2007, 06:17 PM   #2
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 31
I would start by checking the mail logs in /var/log/.
 
Old 09-02-2007, 03:21 AM   #3
vargadanis
Member
 
Registered: Sep 2006
Posts: 248

Original Poster
Rep: Reputation: 30
The problem is solved now. I just grabbed a config from a website and modified a couple of things in it. The config right now is:
Quote:
myhostname = xxx.tld
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = /etc/postfix/local-host-names
relayhost =
mynetworks = 127.0.0.0/8, 192.168.0.0/24
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
home_mailbox = Maildir/
virtual_maps = hash:/etc/postfix/virtusertable
 
  


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
Local Mail delivery gabsik Linux - Networking 0 01-09-2007 07:43 AM
postfix - local delivery 'To: ' rewriting ilikejam Linux - Server 0 11-17-2006 12:07 PM
Postfix and local delivery shawnbishop Linux - Software 20 10-28-2006 01:11 PM
Exim4 only local delivery ALInux Linux - Networking 0 05-02-2006 09:06 AM
sendmail local delivery problems jhildebrand Linux - Networking 0 04-24-2003 03:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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