Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In order for postfix to receive email from the internet, don't you have to have that mail domain registered with dns? Have you made an **MX** record with DNS? If you are using a dynamic internet connection, you must register your DNS and MX records with a DNS registrar, and update them every time they change.
I use http://dyndns.org They offer a free account and utilites to update your DNS record (and MX mailserver record).
Postfix will automatically relay outbound emails through your ISP's mailserver, if you set it up that way. This may be why your outbound traffic is getting out, but inbound traffic has to know the DNS/to/IP translation to get to you.
i have a no-ip.com doing all that for me i can telnet into my mail server useing "telnet main.domain.com smtp" so i a pretty sure this is not the problem.
postfix seems to be getting my hostname from somewere other than the main.cf.
i have entered hostname = main.domain.com and domainname = domain.com but it is not using these names.
Do you have webmin installed? Webmin makes it easy to see all your postfix settings, laid out in a nice gui. That's how I set mine up. You can see and adjust your name, hostname vs domain name from there.
I guess you could do it the old fashioned way, and edit the conf file. I like to use webmin whenever I can. :>
Stupid question, but did you restart Postfix after setting the domain name in the config file? Most servers don't automaticcaly detect changes and need to be restarted. Also, check your mail log, the mail might be getting there, but is being rejected for some reason (you're maillog is usually /var/log/maillog).
in the logs i have found an error
fatal: open database /var/lib/mailman/data/aliases.db: No such file or directory
connect from bay1-f8.bay1.hotmail.com[65.54.245.8]
lost connection after CONNECT from bay1-f8.bay1.hotmail.com[65.54.245.8]
disconnect from bay1-f8.bay1.hotmail.com[65.54.245.8]
but i do not know if this has anything to do with my problem nor how to fix it.
I think the bottom error is when i have tryed to send an email to myself
Sorry about all this thanks for your help, please bear with me.
yes i just had a look in network and the domain and hostname are both set.
my hostname is comp001 but i do not know why it is using this and not my domainname
I have no idea if this is your problem just trying to help postfix is obviously getting comp001 from these files so just check that the format is correct
If you make any changes to these files you may have to reboot to make the changes take effect
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.