Click to See Complete Forum and Search --> : Postfix and Dinamic IP help|
malloc
09-08-2003, 07:13 PM
Ok here's the deal, i'm trying to go a step further and to put some mail receiving capability on my slack 9.0 server. I had sendmail out-of-the-box config and things ran smoothly (meening i could send mail just fine). After doing some searches i decided to change to postfix. I compiled and installed it from source and all went well. Problem is now i can't either send or receive email.
I am using dyndns.org for my ip things and my doubt is this...
When i start postix and go to pine to send some message it just says "xyz is an incomplete maildomain". I've searched everywhere and haven't found any faq or howto regarding this postfix with dyn IP.
How should i config my postfix, especially the $myhostname and $mydomain parts?
I have the following hostname with dyndns, let's say xyz.dyndns.org is this the hostname i should use ? Or is it my localhost name? Also do I have to change my localhost name to xyz.dyndns.org?
Sorry about this, but i am a total noob regarding mail server configs so please bare with me.
Also if you could tell me of any good postfix config faq or howto i would be very thankful.
freemansweb
09-08-2003, 10:09 PM
I am using Postfix/Cyrus, for postfix only a '/etc/postfix/virtual' file should take care of you, a virtual entry looks like this:
yourdomain.com anything
test@yourdomain.com test
yourname@yourdomain.com yourname
then via command line
hash:/etc/postfix/virtual
and reload/restart postfix
That creates the database that postfix will use called virtual. Below are some entries to check and create, notice that 'myhostname = linux.local'. This is ok since I'm using a 'virtual' file
virtual_maps = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
myhostname = linux.local
program_directory = /usr/lib/postfix
disable_dns_lookups = no
relayhost =
smtpd_sender_restrictions = hash:/etc/postfix/access
permit_mynetworks,reject_unauth_destination
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = yes
smtpd_use_tls = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 51200000
message_size_limit = 10240000
virtual_alias_maps = hash:/etc/postfix/virtual
recipient_canonical_maps = hash:/etc/postfix/canonical
freemansweb
09-08-2003, 10:15 PM
One more thing. Be careful who you try to send test mail to, if you send to AOL or hotmail from a dynamic IP it will most likely not make it to its destination. Many ISP's block dynamic IP's to reduce spam. However, you can send mail from AOL or hotmail to that domain and most likely if you can receive it you can send it.
Actually two. The second is to make sure that you have an email address as a reply and from when you send.
malloc
09-09-2003, 11:04 AM
Hey thanks for the help, but i've managed to put it working late last night...Turns out there were 2 problems, first i hadn't run the newaliases command to rebuild the aliases.db and the other one was that i was using the dbm command instead of the hash command.
Thank god for maillog :D
<EDITED>
Well to my surprise i am able to send and receive mail from both hotmail and msn, wich from what i've read were the two nastiest places to send mail to.
malloc
09-09-2003, 02:10 PM
Well i'm having a stupid problem...
My sent email instead of showing up as xyz@xyz.dyndns.org appears as xyz.Server (my hostname), i've changed the $myorigin param on postfix main.cf to xyz.dyndns.org but it still keeps showing up with xyz@xyz.Server...
How can i change this?
PS - i do have the $myhostname param as xyz.dyndns.org
<EDITED>
Well here's the deal so far...
If i change my /etc/HOSTNAME to xyz@xyz.dyndns.org my sent mail is right, it shows xyz.dyndns.org and that make sense...However when i open pine, it says something about "xyz is a incomplete maildomain". But if i change my box name back to xyz.Server the warning doesn't appear anymore...
Can anybody give me a help?