Unix/Linux Go Back    


UNIX and Linux Applications Discuss UNIX and Linux software applications. This includes SQL, Databases, Middleware, MOM, SOA, EDA, CEP, BI, BPM and similar topics.

Mail server

UNIX and Linux Applications


Closed    
 
Thread Tools Search this Thread Display Modes
    #8  
Old Unix and Linux 12-18-2014
Budrys Budrys is offline
Registered User
 
Join Date: Dec 2014
Last Activity: 23 January 2015, 5:40 AM EST
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
I use Ubuntu 12.04.2 LTS



Code:
; <<>> DiG 9.8.1-P1 <<>> vpc2a.wi.zut.edu.pl
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 48313
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;vpc2a.wi.zut.edu.pl.           IN      A

;; AUTHORITY SECTION:
wi.zut.edu.pl.          14400   IN      SOA     dns.wi.tuniv.szczecin.pl. admin.wi.zut.edu.pl. 2014111302 14400 3600 604800 14400

;; Query time: 2 msec
;; SERVER: 192.168.200.2#53(192.168.200.2)
;; WHEN: Thu Dec 18 16:46:44 2014
;; MSG SIZE  rcvd: 101

Sponsored Links
    #9  
Old Unix and Linux 12-19-2014
xabbu xabbu is offline
Registered User
 
Join Date: Jan 2014
Last Activity: 6 March 2017, 1:19 PM EST
Location: Germany
Posts: 50
Thanks: 0
Thanked 15 Times in 15 Posts
Quote:
Originally Posted by Budrys View Post
I use Ubuntu 12.04.2 LTS



Code:
; <<>> DiG 9.8.1-P1 <<>> vpc2a.wi.zut.edu.pl

;; QUESTION SECTION:
;vpc2a.wi.zut.edu.pl.           IN      A

Hi,
your Nameserver is unable to resolve vpc2a.wi.zut.edu.pl. This must be fixed before you can use postfix.
A solution could be to enter the ipaddress and the name in the local file
/etc/hosts

But this way I not recommended. Fix your DNS!

Regards,
xabbu
Sponsored Links
    #10  
Old Unix and Linux 12-19-2014
Budrys Budrys is offline
Registered User
 
Join Date: Dec 2014
Last Activity: 23 January 2015, 5:40 AM EST
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
How can I do that.

My server is on virtual machine on uniwersity network.

Mayby I should create postfix for "local" use for my virtual users.
    #11  
Old Unix and Linux 12-19-2014
xabbu xabbu is offline
Registered User
 
Join Date: Jan 2014
Last Activity: 6 March 2017, 1:19 PM EST
Location: Germany
Posts: 50
Thanks: 0
Thanked 15 Times in 15 Posts
Budrys,

will you accept mails from outside your VM?

Regards
xabbu
Sponsored Links
    #12  
Old Unix and Linux 12-19-2014
Budrys Budrys is offline
Registered User
 
Join Date: Dec 2014
Last Activity: 23 January 2015, 5:40 AM EST
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
I think tahat with VM on my universitys network it's not possible.
Sponsored Links
    #13  
Old Unix and Linux 12-19-2014
xabbu xabbu is offline
Registered User
 
Join Date: Jan 2014
Last Activity: 6 March 2017, 1:19 PM EST
Location: Germany
Posts: 50
Thanks: 0
Thanked 15 Times in 15 Posts
Sure it is.

First correct your main.cf to:


Code:
mydestination = vpc2a.wi.zut.edu.pl, , localhost, localhost.localdomain, localhost

and

service postfix restart

Edit /etc/hosts


Code:
IPADDRESS vpc2a.wi.zut.edu.pl

And try again.

Regards
xabbu
Sponsored Links
    #14  
Old Unix and Linux 12-19-2014
Budrys Budrys is offline
Registered User
 
Join Date: Dec 2014
Last Activity: 23 January 2015, 5:40 AM EST
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
main.cf:


Code:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = vpc2a
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = vpc2a.wi.zut.edu.pl, localhost, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

Restarted Postfix.

/etc/hosts:

Code:
127.0.0.1       localhost
127.0.1.1       UBUNTU12.04-LAB UBUNTU12
192.168.200.93  vpc2a.wi.zut.edu.pl




# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Is etc/postfix/virtual is correct:?

Code:
user@vpc2a user

Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How can I send a mail from my outlook or other mail accounts to UNIX server? igelegin UNIX for Advanced & Expert Users 2 04-16-2013 12:53 PM
Minimal Mail Server Setup for Local Mail Transfer nixie UNIX for Dummies Questions & Answers 2 08-11-2012 04:48 PM
need to configure mail setting to send mail to outlook mail server amitranjansahu UNIX for Advanced & Expert Users 2 02-18-2011 06:29 AM
[Solved] How do I configure Unix Mail Server to use another Mail Exchange Server Tenyhwa HP-UX 4 12-18-2010 09:16 PM
can not send mail from unix server to company/yahoo mail b5fnpct UNIX for Dummies Questions & Answers 5 11-22-2002 08:24 PM



All times are GMT -4. The time now is 10:42 AM.